Rolled back some transitional changes the chat handler

This commit is contained in:
2025-01-12 18:15:58 -05:00
parent 8a6a9e2f87
commit ac01d7fab4
2 changed files with 5 additions and 9 deletions

View File

@@ -596,7 +596,7 @@ TransmogAcoreStrings Transmogrification::Transmogrify(Player* player, Item* item
itemTransmogrified->SetNotRefundable(player);
itemTransmogrified->ClearSoulboundTradeable(player);
if (itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_EQUIPED || itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_USE)
if (itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_EQUIPPED || itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_USE)
itemTransmogrifier->SetBinding(true);
itemTransmogrifier->SetOwnerGUID(player->GetGUID());

View File

@@ -438,16 +438,14 @@ void PerformTransmogrification (Player* player, uint32 itemEntry, uint32 cost)
WorldSession* session = player->GetSession();
if (!player->HasEnoughMoney(cost))
{
// ChatHandler(session).SendNotification(LANG_ERR_TRANSMOG_NOT_ENOUGH_MONEY);
session->SendNotification(LANG_ERR_TRANSMOG_NOT_ENOUGH_MONEY);
ChatHandler(session).SendNotification(LANG_ERR_TRANSMOG_NOT_ENOUGH_MONEY);
return;
}
TransmogAcoreStrings res = sT->Transmogrify(player, itemEntry, slot);
if (res == LANG_ERR_TRANSMOG_OK)
session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK));
else
// ChatHandler(session).SendNotification(res);
session->SendNotification(res);
ChatHandler(session).SendNotification(res);
}
void RemoveTransmogrification (Player* player)
@@ -462,8 +460,7 @@ void RemoveTransmogrification (Player* player)
session->SendAreaTriggerMessage("%s", GTS(LANG_ERR_UNTRANSMOG_OK));
}
else
// ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
session->SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
}
}
@@ -960,8 +957,7 @@ public:
Item* targetItem = player->GetItemByPos(INVENTORY_SLOT_BAG_0, slot);
if (!targetItem)
{
// ChatHandler(player->GetSession()).SendNotification(LANG_ERR_TRANSMOG_MISSING_DEST_ITEM);
player->GetSession()->SendNotification(LANG_ERR_TRANSMOG_MISSING_DEST_ITEM);
ChatHandler(player->GetSession()).SendNotification(LANG_ERR_TRANSMOG_MISSING_DEST_ITEM);
CloseGossipMenuFor(player);
return;
}