Switching to using clone in getRollData rather than an Object to avoid errors

This commit is contained in:
nsalyzyn 2025-12-17 19:19:38 -07:00
parent 3f87004849
commit 6e3ad66bbb

View file

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