Quantcast

Return a usable tick length even if spell haste is unknown.

Johnny C. Lam [10-26-12 - 05:24]
Return a usable tick length even if spell haste is unknown.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@623 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleData.lua
diff --git a/OvaleData.lua b/OvaleData.lua
index 4a124fa..c433e08 100644
--- a/OvaleData.lua
+++ b/OvaleData.lua
@@ -573,7 +573,7 @@ function OvaleData:GetTickLength(spellId, spellHaste)
 		if si.haste ~= "spell" then
 			return si.tick or 3
 		else
-			return (si.tick or 3) / spellHaste
+			return (si.tick or 3) / (spellHaste or 1)
 		end
 	else
 		return nil