Move GetBotStrategyForTeam from core

This commit is contained in:
Boxhead78
2025-07-03 09:39:54 +02:00
parent 309d177dd8
commit 605fa223ce
4 changed files with 71 additions and 10 deletions

View File

@@ -5,6 +5,7 @@
#include "PvpTriggers.h"
#include "BattleGroundTactics.h"
#include "BattlegroundEY.h"
#include "BattlegroundMgr.h"
#include "BattlegroundWS.h"
@@ -180,7 +181,7 @@ bool PlayerHasFlag::IsCapturingFlag(Player* bot)
if (controlledBases == 0)
return false; // bot has flag but no place to take it
// Otherwise, return false stay defensive / move to base
// Otherwise, return false and stay defensive / move to base
return bot->GetGUID() == bg->GetFlagPickerGUID();
}
}
@@ -317,7 +318,7 @@ bool AllianceNoSnowfallGY::IsActive()
return false;
Battleground* bg = bot->GetBattleground();
if (bg && bg->GetBotStrategyForTeam(TEAM_ALLIANCE) != AV_STRATEGY_BALANCED)
if (bg && BGTactics::GetBotStrategyForTeam(bg, TEAM_ALLIANCE) != AV_STRATEGY_BALANCED)
return false;
float botX = bot->GetPositionX();