mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-15 22:30:13 -05:00
Respect channeled spells for "Show during cast" option
Ticket #197 - thanks nandchan!
This commit is contained in:
@ -20,6 +20,7 @@ function GlobalCoolDown.prototype:Enable(core)
|
|||||||
|
|
||||||
--self:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN", "CooldownStateChanged")
|
--self:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN", "CooldownStateChanged")
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_START","CooldownStateChanged")
|
self:RegisterEvent("UNIT_SPELLCAST_START","CooldownStateChanged")
|
||||||
|
self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START","CooldownStateChanged")
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED","CooldownStateChanged")
|
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED","CooldownStateChanged")
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED","CooldownAborted")
|
self:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED","CooldownAborted")
|
||||||
@ -117,7 +118,8 @@ function GlobalCoolDown.prototype:CooldownStateChanged(event, unit, spell, _, _,
|
|||||||
|
|
||||||
if not self.moduleSettings.showDuringCast then
|
if not self.moduleSettings.showDuringCast then
|
||||||
local castTime = self:GetSpellCastTime(spellId)
|
local castTime = self:GetSpellCastTime(spellId)
|
||||||
if castTime and castTime > maxSpellCastSkipTimeMs then
|
local channeledSpellName = UnitChannelInfo(unit)
|
||||||
|
if (castTime and castTime > maxSpellCastSkipTimeMs) or channeledSpellName then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user