Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2024-04-14 21:08:07 +08:00
74 changed files with 1482 additions and 2371 deletions

View File

@@ -635,6 +635,13 @@ void WorldSession::HandleCharDeleteOpcode(WorldPacket& recvData)
accountId = playerData->AccountId;
name = playerData->Name;
level = playerData->Level;
// check mailbox
if (playerData->MailCount)
{
SendCharDelete(CHAR_DELETE_FAILED);
return;
}
}
// prevent deleting other players' characters using cheating tools