From 6ee1684e9b75150aba84862d7f3f35af0d9b70f5 Mon Sep 17 00:00:00 2001 From: Crow Date: Sat, 31 Jan 2026 16:11:40 -0600 Subject: [PATCH] Fix WSG graveyard camping by flag carrier (#2086) Quick fix for a very annoying error identified by SmashingQuasar. In WSG, bots will camp the opposing graveyard if up 2-0. This is supposed to exclude the flag carrier, but a logical error has resulted in the flag carrier being excluded for Alliance camping only, meaning the Horde flag carrier will camp the GY with the rest of the team if up 2-0 and thus refuse to end the game. --- src/Ai/Base/Actions/BattleGroundTactics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ai/Base/Actions/BattleGroundTactics.cpp b/src/Ai/Base/Actions/BattleGroundTactics.cpp index 1704150a..2b198022 100644 --- a/src/Ai/Base/Actions/BattleGroundTactics.cpp +++ b/src/Ai/Base/Actions/BattleGroundTactics.cpp @@ -2227,8 +2227,8 @@ bool BGTactics::selectObjective(bool reset) } // Graveyard Camping if in lead else if (!hasFlag && role < 8 && - (team == TEAM_ALLIANCE && allianceScore == 2 && hordeScore == 0) || - (team == TEAM_HORDE && hordeScore == 2 && allianceScore == 0)) + ((team == TEAM_ALLIANCE && allianceScore == 2 && hordeScore == 0) || + (team == TEAM_HORDE && hordeScore == 2 && allianceScore == 0))) { if (team == TEAM_ALLIANCE) SetSafePos(WS_GY_CAMPING_HORDE, 10.0f);