From 68e1bec88b2891bf5b3603e458fc1d56693392a2 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Sat, 21 Mar 2026 19:29:51 -0400 Subject: [PATCH] Simplify armor pip update --- module/applications/sheets/actors/character.mjs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/module/applications/sheets/actors/character.mjs b/module/applications/sheets/actors/character.mjs index 702c7734..f2686fdd 100644 --- a/module/applications/sheets/actors/character.mjs +++ b/module/applications/sheets/actors/character.mjs @@ -1001,10 +1001,7 @@ export default class CharacterSheet extends DHBaseActorSheet { decreasing = document.system.armor.current >= inputValue; newCurrent = decreasing ? inputValue - 1 : inputValue; await document.update({ 'system.armor.current': newCurrent }); - } else { - const armorChange = document.system.armorChange; - if (!armorChange) return; - + } else if (document.system.armorData) { const { current } = document.system.armorData; decreasing = current >= inputValue; newCurrent = decreasing ? inputValue - 1 : inputValue; @@ -1015,6 +1012,8 @@ export default class CharacterSheet extends DHBaseActorSheet { })); await document.update({ 'system.changes': newChanges }); + } else { + return; } const container = target.closest('.slot-bar');