From e126c59e94c596e5e0ac7bf3d76b2d9c84cb3346 Mon Sep 17 00:00:00 2001 From: dnqbob Date: Mon, 8 Sep 2025 21:43:10 +0800 Subject: [PATCH] Protection: Restore BackoffTicks if target visible --- .../Traits/BotModules/Squads/States/ProtectionStates.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs b/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs index 8175f21236..d50a252b72 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/Squads/States/ProtectionStates.cs @@ -56,7 +56,10 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads Backoff--; } else + { owner.Bot.QueueOrder(new Order("AttackMove", null, owner.Target, false, groupedActors: owner.Units.ToArray())); + Backoff = BackoffTicks; + } } public void Deactivate(Squad owner) { }