Jump to content

[patch][0.12-7046]Arena Invite Fix


Auntie Mangos

Recommended Posts

-What bug does the patch fix?

It fix arena team invite in mangos-0.12 branch

-Bug report:

http://getmangos.eu/community/showpost.php?p=54905&postcount=2793

-What doesn't work?

Sometimes players get "U already in team that size", however that's not true.

-Patch:

diff --git a/src/game/ArenaTeamHandler.cpp b/src/game/ArenaTeamHandler.cpp
index ea0567e..27ec4be 100644
--- a/src/game/ArenaTeamHandler.cpp
+++ b/src/game/ArenaTeamHandler.cpp
@@ -171,7 +171,7 @@ void WorldSession::HandleArenaTeamInviteAcceptOpcode(WorldPacket & /*recv_data*/
    if(!at)
        return;

-    if(_player->GetArenaTeamId(at->GetType()))
+    if(_player->GetArenaTeamId(at->GetSlot()))
    {
        SendArenaTeamCommandResult(ERR_ARENA_TEAM_CREATE_S,"","",ERR_ALREADY_IN_ARENA_TEAM);   // already in arena team that size
        return;

Link to comment
Share on other sites

  • 39 years later...
  • 2 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use