Skip to content

Commit

Permalink
Update transmog_scripts.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Jan 10, 2025
1 parent 0f87b8e commit 752c404
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/transmog_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 752c404

Please sign in to comment.