Ignore aircraft when searching for enemy targets.
This commit is contained in:
@@ -132,7 +132,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
// Use for proactive targeting.
|
// Use for proactive targeting.
|
||||||
public bool IsPreferredEnemyUnit(Actor a)
|
public bool IsPreferredEnemyUnit(Actor a)
|
||||||
{
|
{
|
||||||
if (a == null || a.IsDead || Player.RelationshipWith(a.Owner) != PlayerRelationship.Enemy || a.Info.HasTraitInfo<HuskInfo>())
|
if (a == null || a.IsDead || Player.RelationshipWith(a.Owner) != PlayerRelationship.Enemy || a.Info.HasTraitInfo<HuskInfo>() || a.Info.HasTraitInfo<AircraftInfo>())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var targetTypes = a.GetEnabledTargetTypes();
|
var targetTypes = a.GetEnabledTargetTypes();
|
||||||
|
|||||||
Reference in New Issue
Block a user