Quantcast

Don't use OvaleDate:GetSpellInfo() where we don't want side-effects.

Johnny C. Lam [03-28-13 - 04:34]
Don't use OvaleDate:GetSpellInfo() where we don't want side-effects.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@838 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleBestAction.lua
diff --git a/OvaleBestAction.lua b/OvaleBestAction.lua
index 6bb059a..8e1472b 100644
--- a/OvaleBestAction.lua
+++ b/OvaleBestAction.lua
@@ -729,12 +729,11 @@ function OvaleBestAction:GetActionInfo(element)
 			Ovale:DebugPrint("unknown_spells", "No cooldown data for spell "..spellId)
 		end

-		local si = OvaleData:GetSpellInfo(spellId)
+		local si = OvaleData.spellInfo[spellId]
 		if si then
 			if si.stance and not OvaleStance:IsStance(si.stance) then
 				return nil
 			end
-
 			if si.combo == 0 and OvaleState.state.combo == 0 then
 				return nil
 			end