mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-05 20:34:15 +02:00
.
This commit is contained in:
parent
e420dcbf18
commit
1ed2e539ac
1 changed files with 2 additions and 4 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
import { DHDamageData } from '../fields/action/damageField.mjs';
|
|
||||||
import DHDamageAction from './damageAction.mjs';
|
import DHDamageAction from './damageAction.mjs';
|
||||||
|
|
||||||
export default class DHAttackAction extends DHDamageAction {
|
export default class DHAttackAction extends DHDamageAction {
|
||||||
|
|
@ -17,12 +16,11 @@ export default class DHAttackAction extends DHDamageAction {
|
||||||
if (!this.damage.parts.hitPoints) {
|
if (!this.damage.parts.hitPoints) {
|
||||||
this.damage.parts.hitPoints = baseDamage;
|
this.damage.parts.hitPoints = baseDamage;
|
||||||
} else {
|
} else {
|
||||||
for (const type of baseDamage.type)
|
for (const type of baseDamage.type) this.damage.parts.hitPoints.type.add(type);
|
||||||
this.damage.parts.hitPoints.type.add(type);
|
|
||||||
|
|
||||||
this.damage.parts.hitPoints.value.custom = {
|
this.damage.parts.hitPoints.value.custom = {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
formula: `${baseDamage.value.getFormula()} + ${this.damage.parts.hitPoints.value.getFormula()}`,
|
formula: `${baseDamage.value.getFormula()} + ${this.damage.parts.hitPoints.value.getFormula()}`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue