From fc76d2a759f49c39ea9492b3f9118f6c9daae957 Mon Sep 17 00:00:00 2001 From: U~man Date: Wed, 29 Jul 2020 21:39:00 +0200 Subject: [PATCH] FIX: item attacks --- src/module/item/entity.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/module/item/entity.js b/src/module/item/entity.js index 0ec4657..b2b59f3 100644 --- a/src/module/item/entity.js +++ b/src/module/item/entity.js @@ -89,14 +89,14 @@ export class OseItem extends Item { icon: '', label: "Melee", callback: () => { - this.targetAttack(rollData, "melee", options); + this.actor.targetAttack(rollData, "melee", options); }, }, missile: { icon: '', 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; }