From 1ed2e539ac196091472e49b65e45b42cad0302ce Mon Sep 17 00:00:00 2001 From: WBHarry Date: Wed, 22 Apr 2026 15:26:09 +0200 Subject: [PATCH] . --- module/data/action/attackAction.mjs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/data/action/attackAction.mjs b/module/data/action/attackAction.mjs index c16f15f3..29e7aa8b 100644 --- a/module/data/action/attackAction.mjs +++ b/module/data/action/attackAction.mjs @@ -1,4 +1,3 @@ -import { DHDamageData } from '../fields/action/damageField.mjs'; import DHDamageAction from './damageAction.mjs'; export default class DHAttackAction extends DHDamageAction { @@ -17,12 +16,11 @@ export default class DHAttackAction extends DHDamageAction { if (!this.damage.parts.hitPoints) { this.damage.parts.hitPoints = baseDamage; } else { - for (const type of baseDamage.type) - this.damage.parts.hitPoints.type.add(type); + for (const type of baseDamage.type) this.damage.parts.hitPoints.type.add(type); this.damage.parts.hitPoints.value.custom = { enabled: true, - formula: `${baseDamage.value.getFormula()} + ${this.damage.parts.hitPoints.value.getFormula()}`, + formula: `${baseDamage.value.getFormula()} + ${this.damage.parts.hitPoints.value.getFormula()}` }; } }