From 0936b46926354799ec1600878204be3a261e2f0f Mon Sep 17 00:00:00 2001 From: Nick Salyzyn Date: Thu, 18 Dec 2025 15:00:02 -0700 Subject: [PATCH] [PR] Avoid getRollData adding side effects to the system data (#1436) --- module/documents/actor.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index c269b686..35ab5cc6 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -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;