Fix regression with updating armor when sources are disabled

This commit is contained in:
Carlos Fernandez 2026-03-21 19:13:49 -04:00
parent b6b207299c
commit 568c51a369

View file

@ -470,7 +470,7 @@ export default class DhCharacter extends DhCreature {
const increasing = armorChange >= 0; const increasing = armorChange >= 0;
let remainingChange = Math.abs(armorChange); let remainingChange = Math.abs(armorChange);
const orderedSources = getArmorSources(this.parent); const orderedSources = getArmorSources(this.parent).filter(s => !s.disabled);
const handleArmorData = (embeddedUpdates, doc, armorData) => { const handleArmorData = (embeddedUpdates, doc, armorData) => {
let usedArmorChange = 0; let usedArmorChange = 0;