Adding care on getRollData in DhpActor so as to not modify its system

This commit is contained in:
nsalyzyn 2025-12-17 18:21:44 -07:00
parent e74ce7726a
commit 3f87004849

View file

@ -526,7 +526,7 @@ export default class DhpActor extends Actor {
/**@inheritdoc */
getRollData() {
const rollData = super.getRollData();
const rollData = { ...super.getRollData() };
rollData.name = this.name;
rollData.system = this.system.getRollData();
rollData.prof = this.system.proficiency ?? 1;