From b0514bdb873a82a6da569a93599c45657c94f894 Mon Sep 17 00:00:00 2001 From: dnqbob Date: Mon, 6 Oct 2025 21:11:57 +0800 Subject: [PATCH] Bot protection squad: try attack long range unit even not visible --- .../Traits/BotModules/Squads/States/ProtectionStates.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs b/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs index d50a252b72..d58d6f1270 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs @@ -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; } }