Re-compile script if spells change based on stance.
Johnny C. Lam [06-06-14 - 21:12]
Re-compile script if spells change based on stance.
This fixes a bug introduced in r1365 for 5.4.9 when SpellInfo syntax was
extended to allow "!" to represent "not".
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1521 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index 57325c0..94862de 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -202,6 +202,7 @@ local function TestConditions(paramList)
end
end
if boolean and paramList.if_stance then
+ self_compileOnStances = true
local stance, requireStance = RequireValue(paramList.if_stance)
local isStance = OvaleStance:IsStance(stance)
if (requireStance and not isStance) or (not requireStance and isStance) then