Update entity.js

Added missile mod to damage calcs.
master
The Happy Anarchist 2020-09-05 14:27:03 -10:00
parent a611838d6c
commit 65820e609e
1 changed files with 9 additions and 0 deletions

View File

@ -388,6 +388,11 @@ export class AcksActor extends Actor {
dmgParts.push(data.damage.mod.melee);
}
// Add Missile mod to damage
if (attData.roll.type == "missile") {
dmgParts.push(data.damage.mod.missile);
}
// Damage roll
AcksDice.Roll({
event: options.event,
@ -456,6 +461,10 @@ export class AcksActor extends Actor {
if (options.type == "melee") {
dmgParts.push(data.damage.mod.melee);
}
// Add Missile mod to damage
if (options.type == "missile") {
dmgParts.push(data.damage.mod.missile);
}
const rollData = {
actor: this.data,
item: attData.item,