- potentially fix a bug with disabling the predictedPower cvar while the game is running

This commit is contained in:
Parnic
2008-10-25 00:52:53 +00:00
parent 9e59a77467
commit 38f6e656b7

View File

@ -180,6 +180,11 @@ function PlayerMana.prototype:Update(unit)
return
end
-- the user can toggle the predictedPower cvar at any time and the addon will not get notified. handle it.
if not self.tickerFrame and self:ShouldUseTicker() then
self:CreateTickerFrame()
end
if (self.manaType ~= 3 and self:ShouldUseTicker()) then
self.tickerFrame:Hide()
end