From 5d38322b2e9e549fdc67c34d50006c97981bd4c6 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 19 Oct 2026 01:33:09 -0500 Subject: [PATCH] stable: skin every stabled pet slot the client creates --- skins/blizzard/stable.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/skins/blizzard/stable.lua b/skins/blizzard/stable.lua index 81583916..cdaf9e2f 100644 --- a/skins/blizzard/stable.lua +++ b/skins/blizzard/stable.lua @@ -22,9 +22,16 @@ pfUI:RegisterSkin("Pet Stable Master", function () PetStablePetInfo:ClearAllPoints() PetStablePetInfo:SetPoint("TOPLEFT", PetStableModel, "TOPLEFT", 10, 0) - local buttons = {"PetStableCurrentPet", "PetStableStabledPet1", "PetStableStabledPet2"} - for _,v in pairs(buttons) do - local button = _G[v] + -- Servers differ in stable size (Turtle WoW has 4 slots), so collect + -- every PetStableStabledPetN the client created. + local buttons = { PetStableCurrentPet } + local i = 1 + while _G["PetStableStabledPet"..i] do + table.insert(buttons, _G["PetStableStabledPet"..i]) + i = i + 1 + end + + for _, button in pairs(buttons) do StripTextures(button) SkinButton(button, nil, nil, nil, _G[button:GetName().."IconTexture"])