- Ticket #157 - fixed an error when a channeled spell ends early due to being hit. (Thanks, cg110!)

This commit is contained in:
Parnic
2012-09-30 21:22:16 +00:00
parent 74148a6b98
commit d51b627cf6

View File

@ -551,8 +551,12 @@ function IceCastBar.prototype:SpellCastChannelUpdate(event, unit)
--IceHUD:Debug("SpellCastChannelUpdate", unit, UnitChannelInfo(unit)) --IceHUD:Debug("SpellCastChannelUpdate", unit, UnitChannelInfo(unit))
local spell, rank, displayName, icon, startTime, endTime = UnitChannelInfo(unit) local spell, rank, displayName, icon, startTime, endTime = UnitChannelInfo(unit)
if not spell then
self.actionDuration = 0
else
self.actionDuration = endTime/1000 - self.actionStartTime self.actionDuration = endTime/1000 - self.actionStartTime
end end
end
function IceCastBar.prototype:SpellCastChannelStop(event, unit) function IceCastBar.prototype:SpellCastChannelStop(event, unit)
if (unit ~= self.unit) then return end if (unit ~= self.unit) then return end