- fixed a bug from the last check-in with pre-wotlk clients (GetCVarBool doesn't exist?!)

This commit is contained in:
Parnic
2008-10-09 05:21:32 +00:00
parent 6469bd60a9
commit c634c551ba

View File

@ -493,7 +493,7 @@ function IceBarElement.prototype:CreateFrame()
-- never register the OnUpdate for the mirror bar since it's handled internally
-- in addition, do not register OnUpdate if predictedPower is set and this is the player mana or target mana bar
if not string.find(self.elementName, "MirrorBar")
and (not GetCVarBool("predictedPower") or (not string.find(self.elementName, "PlayerMana") and not string.find(self.elementName, "TargetMana"))) then
and ((IceHUD.WowVer < 30000 or not GetCVarBool("predictedPower")) or (not string.find(self.elementName, "PlayerMana") and not string.find(self.elementName, "TargetMana"))) then
self.frame:SetScript("OnUpdate", function() self:MyOnUpdate() end)
end
end