This commit is contained in:
WBHarry 2025-12-27 14:40:03 +01:00
parent 03a67da34a
commit f2df126cfb
2 changed files with 10 additions and 9 deletions

View file

@ -539,8 +539,10 @@ export default class DhpActor extends Actor {
/**@inheritdoc */
getRollData() {
const rollData = foundry.utils.deepClone(super.getRollData());
/* system gets repeated infinately which causes issues when trying to use the data for document creation */
const { system, ...rollData } = foundry.utils.deepClone(super.getRollData());
delete rollData.system;
rollData.name = this.name;
rollData.system = this.system.getRollData();
rollData.prof = this.system.proficiency ?? 1;