FIX: item attacks

master
U~man 2020-07-29 21:39:00 +02:00
parent 6459321493
commit fc76d2a759
1 changed files with 3 additions and 3 deletions

View File

@ -89,14 +89,14 @@ export class OseItem extends Item {
icon: '<i class="fas fa-fist-raised"></i>',
label: "Melee",
callback: () => {
this.targetAttack(rollData, "melee", options);
this.actor.targetAttack(rollData, "melee", options);
},
},
missile: {
icon: '<i class="fas fa-bullseye"></i>',
label: "Missile",
callback: () => {
this.targetAttack(rollData, "missile", options);
this.actor.targetAttack(rollData, "missile", options);
},
},
},
@ -106,7 +106,7 @@ export class OseItem extends Item {
} else if (data.missile && !isNPC) {
type = "missile";
}
this.targetAttack(rollData, type, options);
this.actor.targetAttack(rollData, type, options);
return true;
}