Merge branch 'master' into araxia-main

This commit is contained in:
2025-01-12 18:12:29 -05:00

View File

@@ -578,7 +578,7 @@ public:
CharacterDatabase.CommitTransaction(trans);
}
else
session->SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
OnGossipHello(player, creature);
} break;
@@ -734,7 +734,9 @@ public:
}
std::string name(code);
if (name.find('"') != std::string::npos || name.find('\\') != std::string::npos)
player->GetSession()->SendNotification(LANG_PRESET_ERR_INVALID_NAME);
{
ChatHandler(player->GetSession()).SendNotification(LANG_PRESET_ERR_INVALID_NAME);
}
else
{
for (uint8 presetID = 0; presetID < sT->GetMaxSets(); ++presetID) // should never reach over max
@@ -771,7 +773,7 @@ public:
cost += sT->GetSetCopperCost();
if (!player->HasEnoughMoney(cost))
{
player->GetSession()->SendNotification(LANG_ERR_TRANSMOG_NOT_ENOUGH_MONEY);
ChatHandler(player->GetSession()).SendNotification(LANG_ERR_TRANSMOG_NOT_ENOUGH_MONEY);
break;
}