Merge pull request #99 from holydeew/master

update (BG): Alliance Warsong Gulch BG Fine Tuning
This commit is contained in:
M'Dic
2022-10-01 13:36:53 -04:00
committed by GitHub

View File

@@ -957,7 +957,9 @@ void AnticheatMgr::BGStartExploit(Player* player, MovementInfo movementInfo)
if (bg->GetStatus() == STATUS_WAIT_JOIN) if (bg->GetStatus() == STATUS_WAIT_JOIN)
{ {
// Outside of starting area before BG has started. // Outside of starting area before BG has started.
if (player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionX() < 1490.0f) if ((player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionX() < 1490.0f) ||
(player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionY() > 1500.0f) ||
(player->GetTeamId() == TEAM_ALLIANCE && movementInfo.pos.GetPositionY() < 1450.0f))
{ {
sAnticheatMgr->BGreport(player); sAnticheatMgr->BGreport(player);
} }