Changed to using lookup for Group Attack damage

This commit is contained in:
WBHarry 2026-02-12 18:47:42 +01:00
parent 9220a4ad1e
commit f452adec00
17 changed files with 23 additions and 16 deletions

View file

@ -34,6 +34,13 @@ export default class DHAttackAction extends DHDamageAction {
};
}
get damageFormula() {
const hitPointsPart = this.damage.parts.find(x => x.applyTo === CONFIG.DH.GENERAL.healingTypes.hitPoints.id);
if (!hitPointsPart) return '0';
return hitPointsPart.value.getFormula();
}
async use(event, options) {
const result = await super.use(event, options);
if (!result.message) return;