Quantcast

If "gcd=N" is specified in SpellInfo, then use that value directly.

Johnny C. Lam [05-03-14 - 00:25]
If "gcd=N" is specified in SpellInfo, then use that value directly.

This allows for special GCD values that are less than the base or even 1s
GCD of some classes.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1352 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCooldown.lua
diff --git a/OvaleCooldown.lua b/OvaleCooldown.lua
index 491cc6e..6ba4aae 100644
--- a/OvaleCooldown.lua
+++ b/OvaleCooldown.lua
@@ -72,7 +72,7 @@ function OvaleCooldown:GetGCD(spellId)
 	if spellId and OvaleData.spellInfo[spellId] then
 		local si = OvaleData.spellInfo[spellId]
 		if si.gcd then
-			cd = si.gcd
+			return si.gcd
 		end
 		if si.haste then
 			if si.haste == "melee" then