From 752c404e5be22b822249a717b8237b35f1aeb4f5 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:45:57 -0300 Subject: [PATCH] Update transmog_scripts.cpp --- src/transmog_scripts.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index ff5f6ce7..ef0a853f 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -538,13 +538,20 @@ class npc_transmogrifier : public CreatureScript switch (sender) { case EQUIPMENT_SLOT_END: // Show items you can use + { sT->selectionCache[player->GetGUID()] = action; - if (sT->GetUseVendorInterface() || player->GetPlayerSetting("mod-transmog", SETTING_VENDOR_INTERFACE).IsEnabled()) - ShowTransmogItemsInFakeVendor(player, creature, action); - else + bool useVendorInterface = player->GetPlayerSetting("mod-transmog", SETTING_VENDOR_INTERFACE).IsEnabled(); + + if (sT->GetUseVendorInterface()) + useVendorInterface ? ShowTransmogItemsInFakeVendor(player, creature, action) : ShowTransmogItemsInGossipMenu(player, creature, action, sender); + else + useVendorInterface ? ShowTransmogItemsInGossipMenu(player, creature, action, sender) : + ShowTransmogItemsInFakeVendor(player, creature, action); + break; + } case EQUIPMENT_SLOT_END + 1: // Main menu OnGossipHello(player, creature); break;