From 98ce829b6be126bd00d0d27452ede7d325209191 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Mon, 12 May 2014 16:08:23 +0000 Subject: [PATCH] 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 --- OvaleFuture.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 1.7.9.5