Skip to content

Commit

Permalink
Merge pull request #10 from PwQt/6-magic-spells-assigned-to-an-item-d…
Browse files Browse the repository at this point in the history
…isappear-from-user-spell-list

fix issue #6
  • Loading branch information
PwQt authored Jul 30, 2023
2 parents ea3566e + fa6308d commit a3c1207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/magicitem.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ class AbstractOwnedEntry {
r.toMessage({
flavor: `<b>${this.name}</b> ${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) {
Expand Down

0 comments on commit a3c1207

Please sign in to comment.