mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
dmg type fallback
This commit is contained in:
parent
2bb90c9053
commit
9d0b9183ee
3 changed files with 6 additions and 10 deletions
|
|
@ -13,6 +13,8 @@ export default class DHDamageAction extends DHBaseAction {
|
|||
let formula = this.damage.parts.map(p => this.getFormulaValue(p, data).getFormula(this.actor)).join(' + '),
|
||||
damageTypes = [...new Set(this.damage.parts.reduce((a,c) => a.concat([...c.type]), []))];
|
||||
|
||||
damageTypes = !damageTypes.length ? ['physical'] : damageTypes;
|
||||
|
||||
if (!formula || formula == '') return;
|
||||
let roll = { formula: formula, total: formula },
|
||||
bonusDamage = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue