- forgot to fix channeling's lag bar to behave properly with all the new combinations of inverting/reversing

This commit is contained in:
Parnic
2010-07-20 02:12:37 +00:00
parent 9d174f453c
commit c6dbacc5fa

View File

@ -483,9 +483,14 @@ function CastBar.prototype:SpellCastChannelStart(unit)
return
end
local lagTop = not xor(self.moduleSettings.reverse, self.moduleSettings.inverse)
if self.moduleSettings.reverseChannel then
lagTop = not lagTop
end
self.lagBar:SetFrameStrata("MEDIUM")
self.lagBar:ClearAllPoints()
if self.moduleSettings.reverse then
if lagTop then
self.lagBar:SetPoint("TOPLEFT", self.frame, "TOPLEFT")
else
self.lagBar:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT")
@ -501,7 +506,7 @@ function CastBar.prototype:SpellCastChannelStart(unit)
local min_y = 1-pos
local max_y = 1
if self.moduleSettings.reverse then
if lagTop then
min_y = 0
max_y = pos
end