mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
.
This commit is contained in:
parent
52b32a4d12
commit
03a67da34a
1 changed files with 2 additions and 1 deletions
|
|
@ -539,7 +539,8 @@ export default class DhpActor extends Actor {
|
||||||
|
|
||||||
/**@inheritdoc */
|
/**@inheritdoc */
|
||||||
getRollData() {
|
getRollData() {
|
||||||
const rollData = super.getRollData().clone();
|
/* system gets repeated infinately which causes issues when trying to use the data for document creation */
|
||||||
|
const { system, ...rollData } = foundry.utils.deepClone(super.getRollData());
|
||||||
rollData.name = this.name;
|
rollData.name = this.name;
|
||||||
rollData.system = this.system.getRollData();
|
rollData.system = this.system.getRollData();
|
||||||
rollData.prof = this.system.proficiency ?? 1;
|
rollData.prof = this.system.proficiency ?? 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue