mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50: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))
|
--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)
|
||||||
|
Reference in New Issue
Block a user