mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
.
This commit is contained in:
parent
03a67da34a
commit
f2df126cfb
2 changed files with 10 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue