mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- removed an event trigger that was causing spells to show failure on the cast bar when they shouldn't have
This commit is contained in:
@ -46,7 +46,6 @@ function IceCastBar.prototype:Enable(core)
|
|||||||
|
|
||||||
self:RegisterEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE", "CheckChatInterrupt")
|
self:RegisterEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE", "CheckChatInterrupt")
|
||||||
self:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE", "CheckChatInterrupt")
|
self:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE", "CheckChatInterrupt")
|
||||||
self:RegisterEvent("CHAT_MSG_SPELL_FAILED_LOCALPLAYER", "CheckChatInterrupt")
|
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_DELAYED", "SpellCastDelayed") -- unit
|
self:RegisterEvent("UNIT_SPELLCAST_DELAYED", "SpellCastDelayed") -- unit
|
||||||
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED", "SpellCastSucceeded") -- "player", spell, rank
|
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED", "SpellCastSucceeded") -- "player", spell, rank
|
||||||
@ -228,7 +227,7 @@ end
|
|||||||
|
|
||||||
function IceCastBar.prototype:SpellCastStop(unit, spell, rank)
|
function IceCastBar.prototype:SpellCastStop(unit, spell, rank)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
--IceHUD:Debug("SpellCastStop", unit, spell, self.current)
|
IceHUD:Debug("SpellCastStop", unit, spell, self.current)
|
||||||
|
|
||||||
-- ignore if not coming from current spell
|
-- ignore if not coming from current spell
|
||||||
if (self.current and self.current ~= spell) then
|
if (self.current and self.current ~= spell) then
|
||||||
@ -247,7 +246,7 @@ end
|
|||||||
|
|
||||||
function IceCastBar.prototype:SpellCastFailed(unit)
|
function IceCastBar.prototype:SpellCastFailed(unit)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
--IceHUD:Debug("SpellCastFailed", unit)
|
IceHUD:Debug("SpellCastFailed", unit, self.current)
|
||||||
|
|
||||||
self.current = nil
|
self.current = nil
|
||||||
|
|
||||||
@ -265,7 +264,7 @@ end
|
|||||||
|
|
||||||
function IceCastBar.prototype:CheckChatInterrupt(msg)
|
function IceCastBar.prototype:CheckChatInterrupt(msg)
|
||||||
local player, spell = deformat(msg, SPELLINTERRUPTOTHERSELF)
|
local player, spell = deformat(msg, SPELLINTERRUPTOTHERSELF)
|
||||||
--IceHUD:Debug("CheckChatInterrupt", msg)
|
IceHUD:Debug("CheckChatInterrupt", msg, self.current)
|
||||||
|
|
||||||
if not player then
|
if not player then
|
||||||
player, spell = deformat(msg, SPELLFAILCASTSELF)
|
player, spell = deformat(msg, SPELLFAILCASTSELF)
|
||||||
@ -279,7 +278,7 @@ end
|
|||||||
|
|
||||||
function IceCastBar.prototype:SpellCastInterrupted(unit)
|
function IceCastBar.prototype:SpellCastInterrupted(unit)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
--IceHUD:Debug("SpellCastInterrupted", unit)
|
IceHUD:Debug("SpellCastInterrupted", unit, self.current)
|
||||||
|
|
||||||
self.current = nil
|
self.current = nil
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user