Bot protection squad: try attack long range unit even not visible

This commit is contained in:
dnqbob
2025-10-06 21:11:57 +08:00
committed by Gustas Kažukauskas
parent 961702d818
commit b0514bdb87

View File

@@ -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;
}
}