From cf9972a7715913645af97801cf4277e47731c3fe Mon Sep 17 00:00:00 2001 From: Merathilis Date: Thu, 9 Jan 2025 07:33:24 +0100 Subject: [PATCH] New DropDown on StableUI --- ElvUI/Mainline/Modules/Skins/Stable.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ElvUI/Mainline/Modules/Skins/Stable.lua b/ElvUI/Mainline/Modules/Skins/Stable.lua index 7f951b38f6..42b6f229ca 100644 --- a/ElvUI/Mainline/Modules/Skins/Stable.lua +++ b/ElvUI/Mainline/Modules/Skins/Stable.lua @@ -55,8 +55,13 @@ function S:Blizzard_StableUI() end local petInfo = modelScene.PetInfo - if petInfo and petInfo.Type then - hooksecurefunc(petInfo.Type, 'SetText', S.ReplaceIconString) + if petInfo then + if petInfo.Type then + hooksecurefunc(petInfo.Type, 'SetText', S.ReplaceIconString) + end + if petInfo.Specialization then + S:HandleDropDownBox(petInfo.Specialization) + end end end