Added lookup for Horde feature

This commit is contained in:
WBHarry 2026-02-12 20:34:21 +01:00
parent f452adec00
commit a4031952d1
10 changed files with 22 additions and 15 deletions

View file

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