mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 09:29:09 +00:00
Battleground Rewrite
- Refactored BattleGroundTactics.cpp - Bots choose strategies to determine if they are more aggressive or defensive in objectives - Largely improved bots tactics in WSG, AB, AV and EY - Improved how bots chase flag carriers - Fixed some bots stuck in action loops - especially in WSG and AV - Fixed several other Bugs
This commit is contained in:
@@ -25,7 +25,7 @@ bool AttackEnemyPlayerAction::isUseful()
|
||||
bool AttackEnemyFlagCarrierAction::isUseful()
|
||||
{
|
||||
Unit* target = context->GetValue<Unit*>("enemy flag carrier")->Get();
|
||||
return target && sServerFacade->IsDistanceLessOrEqualThan(sServerFacade->GetDistance2d(bot, target), 75.0f) &&
|
||||
return target && sServerFacade->IsDistanceLessOrEqualThan(sServerFacade->GetDistance2d(bot, target), 100.0f) &&
|
||||
PlayerHasFlag::IsCapturingFlag(bot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user