From e7717731cb889d3fb4215d0066f0cfb2f3189edf Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 20 Dec 2015 15:22:44 -0600 Subject: [PATCH] Respect channeled spells for "Show during cast" option Ticket #197 - thanks nandchan! --- modules/GlobalCoolDown.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/GlobalCoolDown.lua b/modules/GlobalCoolDown.lua index 7d3dfa4..d6381f7 100644 --- a/modules/GlobalCoolDown.lua +++ b/modules/GlobalCoolDown.lua @@ -20,6 +20,7 @@ function GlobalCoolDown.prototype:Enable(core) --self:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN", "CooldownStateChanged") self:RegisterEvent("UNIT_SPELLCAST_START","CooldownStateChanged") + self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START","CooldownStateChanged") self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED","CooldownStateChanged") self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED","CooldownAborted") @@ -117,7 +118,8 @@ function GlobalCoolDown.prototype:CooldownStateChanged(event, unit, spell, _, _, if not self.moduleSettings.showDuringCast then local castTime = self:GetSpellCastTime(spellId) - if castTime and castTime > maxSpellCastSkipTimeMs then + local channeledSpellName = UnitChannelInfo(unit) + if (castTime and castTime > maxSpellCastSkipTimeMs) or channeledSpellName then return end end