From 3213111695c17bbf882c8f25613349481308de44 Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Mon, 30 Nov 2020 23:52:49 +0200 Subject: [PATCH] Fix stance bar for max level paladin --- OmaAB/StanceBar.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OmaAB/StanceBar.lua b/OmaAB/StanceBar.lua index afb5cc6..0fa0c1a 100644 --- a/OmaAB/StanceBar.lua +++ b/OmaAB/StanceBar.lua @@ -30,7 +30,7 @@ end function update(bar) local n = GetNumShapeshiftForms(); --for i=1,NUM_STANCE_SLOTS do - for i=1,3 do + for i=1,4 do local button = bar[i]; if i <= n then local tex, active, castable = GetShapeshiftFormInfo(i); @@ -46,9 +46,9 @@ function update(bar) else icon:SetVertexColor(0.4, 0.4, 0.4); end - button:Show(); + --button:Show(); else - button:Hide(); + --button:Hide(); end end end @@ -59,12 +59,12 @@ stancebar:SetScript("OnEvent", function(self, event) elseif event == "PLAYER_LOGIN" then -- TODO do class detection and only create necessary buttons stancebar:UnregisterAllEvents(); - for i=1,3 do + for i=1,4 do create(i, self, self[i-1]); end update(self); _G["BINDING_HEADER_OMAABSTANCE"] = "Stance Bar"; - for i = 1,3 do + for i = 1,4 do _G[format("BINDING_NAME_CLICK OmaBTStance%d:LeftButton", i)] = format("Stance Bar Button %d", i); end stancebar:RegisterEvent("UPDATE_SHAPESHIFT_COOLDOWN"); -- 2.39.5