From ed14afc2f6a8389eaa702f111f6924f7c7fba209 Mon Sep 17 00:00:00 2001 From: Fuzz Date: Thu, 4 Jul 2024 19:04:08 +1000 Subject: [PATCH] fixed bot endlessly resetting strats in nagrand and blades edge --- src/AiFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AiFactory.cpp b/src/AiFactory.cpp index 1928504a..063f3411 100644 --- a/src/AiFactory.cpp +++ b/src/AiFactory.cpp @@ -637,7 +637,7 @@ void AiFactory::AddDefaultNonCombatStrategies(Player* player, PlayerbotAI* const if (bgType == BATTLEGROUND_RB) bgType = player->GetBattleground()->GetBgTypeID(true); - if (bgType <= BATTLEGROUND_EY || bgType == BATTLEGROUND_IC) // do not add for not supported bg + if ((bgType <= BATTLEGROUND_EY || bgType == BATTLEGROUND_IC) && !player->InArena()) // do not add for not supported bg or arena nonCombatEngine->addStrategy("battleground"); if (bgType == BATTLEGROUND_WS)