Quantcast

Catch up with Elv in pet battles skin

Darthpred [12-29-12 - 06:04]
Catch up with Elv in pet battles skin
Filename
ElvUI_SLE/skins/blizzard/petbattle.lua
diff --git a/ElvUI_SLE/skins/blizzard/petbattle.lua b/ElvUI_SLE/skins/blizzard/petbattle.lua
index 6020231..5593a08 100644
--- a/ElvUI_SLE/skins/blizzard/petbattle.lua
+++ b/ElvUI_SLE/skins/blizzard/petbattle.lua
@@ -277,8 +277,12 @@ end)
 	bf.TurnTimer.SkipButton:Width(bar:GetWidth())
 	bf.TurnTimer.SkipButton:ClearAllPoints()
 	bf.TurnTimer.SkipButton:SetPoint("BOTTOM", bar, "TOP", 0, 1)
-	bf.TurnTimer.SkipButton.ClearAllPoints = E.noop
-	bf.TurnTimer.SkipButton.SetPoint = E.noop
+	hooksecurefunc(bf.TurnTimer.SkipButton, "SetPoint", function(self, point, attachTo, anchorPoint, xOffset, yOffset)
+		if point ~= "BOTTOM" or point ~= bar or anchorPoint ~= "TOP" or xOffset ~= 0 or yOffset ~= (E.PixelMode and -1 or 1) then
+			bf.TurnTimer.SkipButton:ClearAllPoints()
+			bf.TurnTimer.SkipButton:SetPoint("BOTTOM", bar, "TOP", 0, E.PixelMode and -1 or 1)
+		end
+	end)

 	bf.TurnTimer:Size(bf.TurnTimer.SkipButton:GetWidth(), bf.TurnTimer.SkipButton:GetHeight())
 	bf.TurnTimer:ClearAllPoints()