mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- fixed a bug that caused mana frames to stop updating properly in wotlk under certain conditions
This commit is contained in:
@ -490,7 +490,10 @@ function IceBarElement.prototype:CreateFrame()
|
|||||||
self:CreateTexts()
|
self:CreateTexts()
|
||||||
|
|
||||||
self.frame:SetScale(self.moduleSettings.scale)
|
self.frame:SetScale(self.moduleSettings.scale)
|
||||||
if not string.find(self.elementName, "MirrorBar") then
|
-- 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
|
||||||
self.frame:SetScript("OnUpdate", function() self:MyOnUpdate() end)
|
self.frame:SetScript("OnUpdate", function() self:MyOnUpdate() end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user