Merge pull request #1 from WoWHellgarve-HolyDeeW/master

Alliance AV BG fine tuning
This commit is contained in:
holydeew
2022-10-01 17:29:34 +01:00
committed by GitHub

View File

@@ -929,8 +929,10 @@ 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)