FIX: item attacks
parent
6459321493
commit
fc76d2a759
|
@ -89,14 +89,14 @@ export class OseItem extends Item {
|
||||||
icon: '<i class="fas fa-fist-raised"></i>',
|
icon: '<i class="fas fa-fist-raised"></i>',
|
||||||
label: "Melee",
|
label: "Melee",
|
||||||
callback: () => {
|
callback: () => {
|
||||||
this.targetAttack(rollData, "melee", options);
|
this.actor.targetAttack(rollData, "melee", options);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
missile: {
|
missile: {
|
||||||
icon: '<i class="fas fa-bullseye"></i>',
|
icon: '<i class="fas fa-bullseye"></i>',
|
||||||
label: "Missile",
|
label: "Missile",
|
||||||
callback: () => {
|
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) {
|
} else if (data.missile && !isNPC) {
|
||||||
type = "missile";
|
type = "missile";
|
||||||
}
|
}
|
||||||
this.targetAttack(rollData, type, options);
|
this.actor.targetAttack(rollData, type, options);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue