Moved the damageFormula function to damageAction

This commit is contained in:
WBHarry 2025-12-06 15:15:52 +01:00
parent 51135b6a67
commit e9752f5461
3 changed files with 14 additions and 17 deletions

View file

@ -36,7 +36,7 @@ export default class RegisterHandlebarsHelpers {
}
static damageFormula(attack) {
return game.system.api.fields.ActionFields.DamageField.getFormulaString.bind(attack)(attack.damage.parts);
return attack.getDamageFormula();
}
static formulaValue(formula, item) {