mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-31 01:13:48 +00:00
Move GetBotStrategyForTeam from core
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user