mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[6955] Introduce new function Player::LeaveAllArenaTeams and use it on player delete.
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
c92d146391
commit
b17b4c9fd8
4 changed files with 37 additions and 47 deletions
|
|
@ -171,7 +171,7 @@ void WorldSession::HandleArenaTeamInviteAcceptOpcode(WorldPacket & /*recv_data*/
|
|||
if(!at)
|
||||
return;
|
||||
|
||||
if(_player->GetArenaTeamIdFromDB(_player->GetGUIDLow(), at->GetType()))
|
||||
if(_player->GetArenaTeamId(at->GetType()))
|
||||
{
|
||||
SendArenaTeamCommandResult(ERR_ARENA_TEAM_CREATE_S,"","",ERR_ALREADY_IN_ARENA_TEAM); // already in arena team that size
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue