From 7c852d90fb4a6eecdac61739bc532dcf0ae357ef Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 6 Dec 2020 18:18:05 +0000 Subject: [PATCH] Ignore aircraft when searching for enemy targets. --- OpenRA.Mods.Common/Traits/BotModules/SquadManagerBotModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/BotModules/SquadManagerBotModule.cs b/OpenRA.Mods.Common/Traits/BotModules/SquadManagerBotModule.cs index 28c5442726..c8d8019e0c 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/SquadManagerBotModule.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/SquadManagerBotModule.cs @@ -132,7 +132,7 @@ namespace OpenRA.Mods.Common.Traits // Use for proactive targeting. public bool IsPreferredEnemyUnit(Actor a) { - if (a == null || a.IsDead || Player.RelationshipWith(a.Owner) != PlayerRelationship.Enemy || a.Info.HasTraitInfo()) + if (a == null || a.IsDead || Player.RelationshipWith(a.Owner) != PlayerRelationship.Enemy || a.Info.HasTraitInfo() || a.Info.HasTraitInfo()) return false; var targetTypes = a.GetEnabledTargetTypes();