Fixed ArmorEffect max being a string

This commit is contained in:
WBHarry 2026-02-11 10:22:24 +01:00
parent b0f8442aaa
commit 49e834062b
37 changed files with 144 additions and 107 deletions

View file

@ -173,7 +173,7 @@ export default class DamageReductionDialog extends HandlebarsApplicationMixin(Ap
? Object.values(this.availableStressReductions).filter(red => red.selected)
: [];
const currentMarks =
this.actor.system.armor.system.marks.value + selectedArmorMarks.length + selectedStressMarks.length;
this.actor.system.armorScore.value + selectedArmorMarks.length + selectedStressMarks.length;
const armorMarkReduction =
selectedArmorMarks.length * this.actor.system.rules.damageReduction.increasePerArmorMark;