Fixed bar rotation breaking low thresholds

I guess something in the 7.0 client must have changed how animations work for inherited frames because it would appear that the RotateFrame call for the child flashFrame is now causing issues somehow. Removing the call allows the flash/low threshold frame to travel alongside the parent frame when rotating.
This commit is contained in:
Parnic
2016-07-24 17:04:07 -05:00
parent 46152e92f4
commit ca544384b8

View File

@ -197,13 +197,15 @@ end
function IceUnitBar.prototype:RotateHorizontal()
IceUnitBar.super.prototype.RotateHorizontal(self)
if IceHUD.WowVer < 70000 then
self:RotateFrame(self.flashFrame)
end
end
function IceUnitBar.prototype:ResetRotation()
IceUnitBar.super.prototype.ResetRotation(self)
if self.flashFrame and self.flashFrame.anim then
if IceHUD.WowVer < 70000 and self.flashFrame and self.flashFrame.anim then
self.flashFrame.anim:Stop()
end
end