Fixed SpellCastSucceeded signature and spell name for 8.0

This commit is contained in:
Parnic
2018-08-17 22:43:47 -05:00
parent 8ddc6c5911
commit 1591b36e89

View File

@ -519,9 +519,9 @@ function IceCastBar.prototype:SpellCastDelayed(event, unit, castGuid, spellId)
end
function IceCastBar.prototype:SpellCastSucceeded(event, castGuid, spellId)
function IceCastBar.prototype:SpellCastSucceeded(event, unit, castGuid, spellId)
if (unit ~= self.unit) then return end
--IceHUD:Debug("SpellCastSucceeded", unit, spell, rank)
--IceHUD:Debug("SpellCastSucceeded", unit, castGuid, spellId)
-- never show on channeled (why on earth does this event even fire when channeling starts?)
if (self.action == IceCastBar.Actions.Channel) then
@ -533,6 +533,8 @@ function IceCastBar.prototype:SpellCastSucceeded(event, castGuid, spellId)
return
end
local spell = GetSpellInfo(spellId)
-- show after normal successfull cast
if (self.action == IceCastBar.Actions.Cast) then
self:StartBar(IceCastBar.Actions.Success, spell.. self:GetShortRank(rank))