From 50b4b4cf26a86aae40aed9ab176914a1c1352099 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 12 Mar 2026 19:52:01 +0100 Subject: [PATCH] Fixed scars change preUpdate --- module/data/actor/character.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/data/actor/character.mjs b/module/data/actor/character.mjs index 68f7f3a8..3d18fbbe 100644 --- a/module/data/actor/character.mjs +++ b/module/data/actor/character.mjs @@ -721,7 +721,8 @@ export default class DhCharacter extends DhCreature { const newHopeMax = this.system.resources.hope.max + diff; const newHopeValue = Math.min(newHopeMax, this.system.resources.hope.value); if (newHopeValue != this.system.resources.hope.value) { - if (!changes.system.resources) changes.system.resources = { hope: { value: 0 } }; + if (!changes.system.resources.hope) changes.system.resources.hope = { value: 0 }; + changes.system.resources.hope = { ...changes.system.resources.hope, value: changes.system.resources.hope.value + newHopeValue