- 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:
Parnic
2008-11-13 21:59:03 +00:00
parent 4923e3c2ca
commit 3f930d4ed2
2 changed files with 2 additions and 12 deletions

View File

@ -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)