mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed a potential nil access problem in the CastBar
- fixed a bug causing TargetInfo lines to be forced to contain data. now any of the lines can be empty if the user chooses
This commit is contained in:
@ -378,7 +378,7 @@ function CastBar.prototype:SpellCastStart(unit, spell, rank)
|
||||
CastBar.super.prototype.SpellCastStart(self, unit, spell, rank)
|
||||
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 y = self.settings.barHeight - (pos * self.settings.barHeight)
|
||||
|
Reference in New Issue
Block a user