mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[PR] Avoid getRollData adding side effects to the system data (#1436)
This commit is contained in:
parent
05dec9fcea
commit
0936b46926
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue