mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-15 22:30:13 -05:00
- Ticket #157 - fixed an error when a channeled spell ends early due to being hit. (Thanks, cg110!)
This commit is contained in:
@ -551,7 +551,11 @@ function IceCastBar.prototype:SpellCastChannelUpdate(event, unit)
|
||||
--IceHUD:Debug("SpellCastChannelUpdate", unit, UnitChannelInfo(unit))
|
||||
|
||||
local spell, rank, displayName, icon, startTime, endTime = UnitChannelInfo(unit)
|
||||
self.actionDuration = endTime/1000 - self.actionStartTime
|
||||
if not spell then
|
||||
self.actionDuration = 0
|
||||
else
|
||||
self.actionDuration = endTime/1000 - self.actionStartTime
|
||||
end
|
||||
end
|
||||
|
||||
function IceCastBar.prototype:SpellCastChannelStop(event, unit)
|
||||
|
Reference in New Issue
Block a user