mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Update transmog_scripts.cpp
This commit is contained in:
@@ -625,7 +625,7 @@ 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
|
||||
@@ -662,7 +662,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user