From 475c6b99f2123b6d9774a1d3d51e0422dbd5cd99 Mon Sep 17 00:00:00 2001 From: chrisk123999 Date: Sun, 6 Oct 2024 12:46:28 -0700 Subject: [PATCH] Spell FIx --- scripts/applications/medkit-actor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/applications/medkit-actor.js b/scripts/applications/medkit-actor.js index b4c086aa7..cc02061c1 100644 --- a/scripts/applications/medkit-actor.js +++ b/scripts/applications/medkit-actor.js @@ -125,7 +125,7 @@ export class ActorMedkit extends HandlebarsApplicationMixin(ApplicationV2) { let options = {source: undefined, version: undefined}; if (currentValue.sourceItem.pack.includes('gambits-premades')) { options.source = 'gambits-premades'; - if (currentValue.item?.actor?.type === 'character') { + if (currentValue.item?.actor?.type === 'character' || currentValue.item.type === 'spell') { options.version = gambitPremades.gambitItems.find(i => i.name === currentValue.sourceItem.name)?.version; } else { options.version = gambitPremades.gambitMonsters.find(i => i.name === currentValue.sourceItem.name && i.monster === this.identifier)?.version; @@ -133,7 +133,7 @@ export class ActorMedkit extends HandlebarsApplicationMixin(ApplicationV2) { } else if (currentValue.sourceItem.pack.includes('midi-item-showcase-community')) { options.source = 'midi-item-showcase-community'; options.version = miscPremades.miscItems.find(i => i.name === currentValue.sourceItem.name)?.version; - if (currentValue.item?.actor?.type === 'character') { + if (currentValue.item?.actor?.type === 'character' || currentValue.item.type === 'spell') { options.version = miscPremades.miscItems.find(i => i.name === currentValue.sourceItem.name)?.version; } else { options.version = miscPremades.miscMonsters.find(i => i.name === currentValue.sourceItem.name && i.monster === this.identifier)?.version;