From ca544384b8cc33c843f1d6b48b98afb4316cad52 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 24 Jul 2016 17:04:07 -0500 Subject: [PATCH] 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. --- IceUnitBar.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/IceUnitBar.lua b/IceUnitBar.lua index 423ba2e..0045108 100644 --- a/IceUnitBar.lua +++ b/IceUnitBar.lua @@ -197,13 +197,15 @@ end function IceUnitBar.prototype:RotateHorizontal() IceUnitBar.super.prototype.RotateHorizontal(self) - self:RotateFrame(self.flashFrame) + 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