From 8c0702185e817c379d5df815db65e9b556e9fd9e Mon Sep 17 00:00:00 2001 From: iCE Date: Sat, 1 Oct 2022 18:12:27 +0200 Subject: [PATCH 1/2] Alliance AV BG fine tuning --- src/AnticheatMgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index d127a2f..1bd0e76 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -929,8 +929,9 @@ void AnticheatMgr::BGStartExploit(Player* player, MovementInfo movementInfo) if (bg->GetStatus() == STATUS_WAIT_JOIN) { // Outside of starting area before BG has started. - if (player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionX() < 770.0f) - { + if ((player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionX() < 770.0f) || + (player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionX() > 940.31f) || + (player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionY() < -525.0f)) { sAnticheatMgr->BGreport(player); } if (player->GetTeamId() == TEAM_HORDE && movementInfo.pos.GetPositionY() > -536.0f) From a0483aebfa1f6b5a209c0e08163be218ed320bde Mon Sep 17 00:00:00 2001 From: iCE Date: Sat, 1 Oct 2022 18:20:03 +0200 Subject: [PATCH 2/2] Update AnticheatMgr.cpp --- src/AnticheatMgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 1bd0e76..4ee93e5 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -931,7 +931,8 @@ void AnticheatMgr::BGStartExploit(Player* player, MovementInfo movementInfo) // Outside of starting area before BG has started. if ((player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionX() < 770.0f) || (player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionX() > 940.31f) || - (player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionY() < -525.0f)) { + (player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionY() < -525.0f)) + { sAnticheatMgr->BGreport(player); } if (player->GetTeamId() == TEAM_HORDE && movementInfo.pos.GetPositionY() > -536.0f)