From 25f46acb7374494e3f9d60e42f3140792c1a3b0a Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Fri, 18 Jul 2014 16:15:15 -0400 Subject: [PATCH] Fix Casting() condition to work when passed a spell ID. The checks in Casting() were missing one for if the spell ID parameter was passed and was not the name of spell list, "helpful" or "harmful". This fixes ticket 382 by @Genkidama. --- conditions/Casting.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conditions/Casting.lua b/conditions/Casting.lua index ffa7f88..52d4063 100644 --- a/conditions/Casting.lua +++ b/conditions/Casting.lua @@ -78,6 +78,10 @@ do return start, ending elseif spellId == "helpful" and API_IsHelpfulSpell(castSpellName) then return start, ending + elseif spellId == castSpellId then + return start, ending + elseif type(spellId) == "number" and OvaleSpellBook:GetSpellName(spellId) == castSpellName then + return start, ending end end return nil -- 1.7.9.5