diff --git a/OpenRA.Mods.Common/Traits/AutoTarget.cs b/OpenRA.Mods.Common/Traits/AutoTarget.cs index 4194c7751a..38f1123f90 100644 --- a/OpenRA.Mods.Common/Traits/AutoTarget.cs +++ b/OpenRA.Mods.Common/Traits/AutoTarget.cs @@ -303,7 +303,9 @@ namespace OpenRA.Mods.Common.Traits if (attackStances != PlayerRelationship.None) { var range = Info.ScanRadius > 0 ? WDist.FromCells(Info.ScanRadius) : ab.GetMaximumRange(); - return ChooseTarget(self, ab, attackStances, range, allowMove, allowTurn); + var target = ChooseTarget(self, ab, attackStances, range, allowMove, allowTurn); + if (target.Type != TargetType.Invalid) + return target; } } }