This commit is contained in:
WBHarry 2026-03-15 22:35:16 +01:00
parent 4332a1ba7a
commit 7a8591bb1b
5 changed files with 17 additions and 17 deletions

View file

@ -10,8 +10,8 @@ export default class DamageReductionDialog extends HandlebarsApplicationMixin(Ap
this.reject = reject;
this.actor = actor;
this.damage = damage;
// this.damageType = damageType;
this.damageType = ['physical'];
this.damageType = damageType;
this.rulesDefault = game.settings.get(
CONFIG.DH.id,
CONFIG.DH.SETTINGS.gameSettings.Automation
@ -340,9 +340,8 @@ export default class DamageReductionDialog extends HandlebarsApplicationMixin(Ap
const { selectedStressMarks, stressReductions, currentDamage } = this.getDamageInfo();
const armorChanges = this.marks.armor.reduce((acc, source) => {
const amount = Object.values(source.marks).filter(x => x.selected).length;
if (!amount) return acc;
if (amount) acc.push({ uuid: source.effect.uuid, amount });
acc.push({ uuid: source.effect.uuid, amount });
return acc;
}, []);
const stressSpent =