Match changes in OvaleCooldown for parameter name "buff_no_cd".
Johnny C. Lam [05-12-14 - 16:08]
Match changes in OvaleCooldown for parameter name "buff_no_cd".
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1427 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleFuture.lua b/OvaleFuture.lua
index be82ea7..cb3a404 100644
--- a/OvaleFuture.lua
+++ b/OvaleFuture.lua
@@ -178,9 +178,10 @@ local function AddSpellToQueue(spellId, lineId, startTime, endTime, channeled, a
local si = OvaleData.spellInfo[spellId]
if si then
- if si.buffnocd then
- local now = API_GetTime()
- local aura = OvaleAura:GetAura("player", si.buffnocd)
+ -- Check whether this spell has no cooldown.
+ local buffNoCooldown = si.buff_no_cd or si.buffnocd
+ if buffNoCooldown then
+ local aura = OvaleAura:GetAura("player", buffNoCooldown)
if OvaleAura:IsActiveAura(aura) then
spellcast.nocd = true
end