From fa64f46bc14c016f558f311efb636fc1b6f63601 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 20 Dec 2015 15:15:51 -0600 Subject: [PATCH] Fixes GCD sometimes not triggering I'm not having any problems triggering the GCD with items or spells, but a ticket reports that this is an issue and this is the way to fix it. (ticket #198 - thanks nandchan!) --- modules/GlobalCoolDown.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/GlobalCoolDown.lua b/modules/GlobalCoolDown.lua index 624c180..7d3dfa4 100644 --- a/modules/GlobalCoolDown.lua +++ b/modules/GlobalCoolDown.lua @@ -110,13 +110,13 @@ function GlobalCoolDown.prototype:GetSpellCastTime(spell) end end -function GlobalCoolDown.prototype:CooldownStateChanged(event, unit, spell) - if unit ~= "player" or not spell then +function GlobalCoolDown.prototype:CooldownStateChanged(event, unit, spell, _, _, spellId) + if unit ~= "player" or not spellId then return end if not self.moduleSettings.showDuringCast then - local castTime = self:GetSpellCastTime(spell) + local castTime = self:GetSpellCastTime(spellId) if castTime and castTime > maxSpellCastSkipTimeMs then return end