Bot protection squad: try attack long range unit even not visible
This commit is contained in:
committed by
Gustas Kažukauskas
parent
961702d818
commit
b0514bdb87
@@ -44,6 +44,8 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads
|
||||
}
|
||||
}
|
||||
|
||||
owner.Bot.QueueOrder(new Order("AttackMove", null, owner.Target, false, groupedActors: owner.Units.ToArray()));
|
||||
|
||||
if (!owner.IsTargetVisible)
|
||||
{
|
||||
if (Backoff < 0)
|
||||
@@ -57,7 +59,6 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads
|
||||
}
|
||||
else
|
||||
{
|
||||
owner.Bot.QueueOrder(new Order("AttackMove", null, owner.Target, false, groupedActors: owner.Units.ToArray()));
|
||||
Backoff = BackoffTicks;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user