[Fix] Actor Roll Data (#1477)

* .

* .
This commit is contained in:
WBHarry 2025-12-27 18:15:56 +01:00 committed by GitHub
parent 09aafd0999
commit ab7ea03d84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View file

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