fix. Prevent character deletion if you have an email (#18743)
* fix. Prevent character deletion if you have an email * Conditional revert * change message * original message
This commit is contained in:
@@ -640,6 +640,13 @@ void WorldSession::HandleCharDeleteOpcode(WorldPacket& recvData)
|
|||||||
accountId = playerData->AccountId;
|
accountId = playerData->AccountId;
|
||||||
name = playerData->Name;
|
name = playerData->Name;
|
||||||
level = playerData->Level;
|
level = playerData->Level;
|
||||||
|
|
||||||
|
// check mailbox
|
||||||
|
if (playerData->MailCount)
|
||||||
|
{
|
||||||
|
SendCharDelete(CHAR_DELETE_FAILED);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// prevent deleting other players' characters using cheating tools
|
// prevent deleting other players' characters using cheating tools
|
||||||
|
|||||||
Reference in New Issue
Block a user