Created
January 25, 2016 17:27
-
-
Save callmephil/606d64778000bda9a7cf to your computer and use it in GitHub Desktop.
Disable /Who In Arena
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Handlers/MiscHandler.cpp b/src/server/game/Handlers/MiscHandler.cpp | |
index 758d5af..6f07ff4 100644 | |
--- a/src/server/game/Handlers/MiscHandler.cpp | |
+++ b/src/server/game/Handlers/MiscHandler.cpp | |
@@ -255,6 +255,10 @@ void WorldSession::HandleWhoOpcode(WorldPacket& recvData) | |
// player can see member of other team only if CONFIG_ALLOW_TWO_SIDE_WHO_LIST | |
if (target->GetTeam() != team && !HasPermission(rbac::RBAC_PERM_TWO_SIDE_WHO_LIST)) | |
continue; | |
+ | |
+ // will not allow player in arena to see other players in who | |
+ if (_player->GetMap()->IsBattleArena() && target->GetMap()->IsBattleArena()) | |
+ continue; | |
// player can see MODERATOR, GAME MASTER, ADMINISTRATOR only if CONFIG_GM_IN_WHO_LIST | |
if (!HasPermission(rbac::RBAC_PERM_WHO_SEE_ALL_SEC_LEVELS) && target->GetSession()->GetSecurity() > AccountTypes(gmLevelInWhoList)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment