From fa6308d722e07f03ab64568b302a8d0a5942c809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kucia?= Date: Sun, 30 Jul 2023 16:56:09 +0200 Subject: [PATCH] fix issue #6 --- scripts/magicitem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/magicitem.js b/scripts/magicitem.js index dabc968..50ecf94 100644 --- a/scripts/magicitem.js +++ b/scripts/magicitem.js @@ -843,7 +843,7 @@ class AbstractOwnedEntry { r.toMessage({ flavor: `${this.name} ${game.i18n.localize("MAGICITEMS.MagicItemDestroyCheck")} - ${destroyed ? game.i18n.localize("MAGICITEMS.MagicItemDestroyCheckFailure") : game.i18n.localize("MAGICITEMS.MagicItemDestroyCheckSuccess")}`, - speaker: ChatMessage.getSpeaker({actor: this.actor, token: this.actor.token}) + speaker: ChatMessage.getSpeaker({actor: this.magicItem.actor, token: this.magicItem.actor.token}) }); } if(destroyed) {