Protection: Restore BackoffTicks if target visible

This commit is contained in:
dnqbob
2025-09-08 21:43:10 +08:00
committed by Gustas Kažukauskas
parent d555baa0c2
commit e126c59e94

View File

@@ -56,7 +56,10 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads
Backoff--; Backoff--;
} }
else else
{
owner.Bot.QueueOrder(new Order("AttackMove", null, owner.Target, false, groupedActors: owner.Units.ToArray())); owner.Bot.QueueOrder(new Order("AttackMove", null, owner.Target, false, groupedActors: owner.Units.ToArray()));
Backoff = BackoffTicks;
}
} }
public void Deactivate(Squad owner) { } public void Deactivate(Squad owner) { }