From b2345145e3b0696e815c1c6be5034bde7c715b4f Mon Sep 17 00:00:00 2001 From: Benjamin Johnson Date: Wed, 18 Sep 2019 19:46:19 +0100 Subject: [PATCH] Update Gearswap to allow for Dispelga Include Dispelga in the check_spell, similar to Impact, as it's a gear-attained spell. --- addons/GearSwap/helper_functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/GearSwap/helper_functions.lua b/addons/GearSwap/helper_functions.lua index 2058b23b1..88de35e8c 100644 --- a/addons/GearSwap/helper_functions.lua +++ b/addons/GearSwap/helper_functions.lua @@ -701,9 +701,9 @@ end ---- false if the spell is not currently accessible ----------------------------------------------------------------------------------- function check_spell(available_spells,spell) - -- Filter for spells that you do not know. Exclude Impact. + -- Filter for spells that you do not know. Exclude Impact / Dispelga. local spell_jobs = copy_entry(res.spells[spell.id].levels) - if not available_spells[spell.id] and not (spell.id == 503 or spell.id == 417) then + if not available_spells[spell.id] and not (spell.id == 503 or spell.id == 417 or spell.id == 360) then return false,"Unable to execute command. You do not know that spell ("..(res.spells[spell.id][language] or spell.id)..")" -- Filter for spells that you know, but do not currently have access to elseif (not spell_jobs[player.main_job_id] or not (spell_jobs[player.main_job_id] <= player.main_job_level or