mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Merge pull request #6898 from horn/trinity_wishlist
Core/Mails: Allow GMs to send emails without money
This commit is contained in:
@@ -107,7 +107,7 @@ void WorldSession::HandleSendMail(WorldPacket & recv_data)
|
||||
|
||||
uint32 reqmoney = cost + money;
|
||||
|
||||
if (!player->HasEnoughMoney(reqmoney))
|
||||
if (!player->HasEnoughMoney(reqmoney) && !player->isGameMaster())
|
||||
{
|
||||
player->SendMailResult(0, MAIL_SEND, MAIL_ERR_NOT_ENOUGH_MONEY);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user