mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- potential fix for a castbar bug with channeled spells
This commit is contained in:
@ -398,7 +398,7 @@ function CastBar.prototype:SpellCastChannelStart(unit)
|
|||||||
CastBar.super.prototype.SpellCastChannelStart(self, unit)
|
CastBar.super.prototype.SpellCastChannelStart(self, unit)
|
||||||
if (unit ~= self.unit) then return end
|
if (unit ~= self.unit) then return end
|
||||||
|
|
||||||
local lag = GetTime() - self.spellCastSent
|
local lag = GetTime() - (self.spellCastSent or 0)
|
||||||
|
|
||||||
local pos = lag / self.actionDuration
|
local pos = lag / self.actionDuration
|
||||||
local y = self.settings.barHeight - (pos * self.settings.barHeight)
|
local y = self.settings.barHeight - (pos * self.settings.barHeight)
|
||||||
|
Reference in New Issue
Block a user