[PR] Avoid getRollData adding side effects to the system data (#1436)

This commit is contained in:
Nick Salyzyn 2025-12-18 15:00:02 -07:00 committed by GitHub
parent 05dec9fcea
commit 0936b46926
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;