From baad7e713525c73fb0e3d7d311e035cf53308c7d Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 13 Aug 2025 21:29:49 +0200 Subject: [PATCH] actionbar: make stances dodge the pet bar by default --- modules/actionbar.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 0c7165d9..eabebc55 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -1401,6 +1401,24 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () bars[i]:SetPoint("BOTTOM", bars[6], "TOP", 0, 3*border) elseif i == 12 then -- pet bars[i]:SetPoint("BOTTOM", bars[6], "TOP", 0, 3*border) + + -- make stance bar dodge by default + bars[i]:SetScript("OnShow", function() + if bars[11] and bars[11]:IsShown() then + bars[11]:ClearAllPoints() + bars[11]:SetPoint("BOTTOM", bars[12], "TOP", 0, 3*border) + UpdateMovable(bars[11], true) + end + end) + + -- restore old stance bar position + bars[i]:SetScript("OnHide", function() + if bars[11] and bars[11]:IsShown() then + bars[11]:ClearAllPoints() + bars[11]:SetPoint("BOTTOM", bars[6], "TOP", 0, 3*border) + UpdateMovable(bars[11], true) + end + end) else -- others bars[i]:SetPoint("TOP", 0, -i*50) end