mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Hide lag bar if lag is over half the cast time
This commit is contained in:
@ -477,7 +477,7 @@ function CastBar.prototype:UpdateLagBar(isChannel)
|
||||
scale = IceHUD:Clamp(self.fixedLatency / self.actionDuration, 0, 1)
|
||||
else
|
||||
local lag = now - (self.spellCastSent or now)
|
||||
if lag >= self.actionDuration then
|
||||
if lag >= (self.actionDuration / 2) then
|
||||
scale = 0
|
||||
else
|
||||
scale = IceHUD:Clamp(lag / self.actionDuration, 0, 1)
|
||||
|
Reference in New Issue
Block a user