From 4cf8741527ac3ba3e615f07bc0afd261aa2e4384 Mon Sep 17 00:00:00 2001 From: Parnic Date: Fri, 13 Feb 2009 14:14:52 +0000 Subject: [PATCH] - potential fix for a castbar bug with channeled spells --- modules/CastBar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/CastBar.lua b/modules/CastBar.lua index 23d6700..7fdedd8 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -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)