- potential fix for a castbar bug with channeled spells

This commit is contained in:
Parnic
2009-02-13 14:14:52 +00:00
parent ad8ac9c873
commit 4cf8741527

View File

@ -398,7 +398,7 @@ function CastBar.prototype:SpellCastChannelStart(unit)
CastBar.super.prototype.SpellCastChannelStart(self, unit)
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)