make autotarget not interested in cloaked units; make ss a normal ship (but cloaked) rather than its own unit type

This commit is contained in:
Chris Forbes
2010-05-19 19:30:26 +12:00
parent b9ca655756
commit 490d8d5a5f
2 changed files with 1 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ namespace OpenRA.Traits
return inRange
.Where(a => a.Owner != null && self.Owner.Stances[ a.Owner ] == Stance.Enemy)
.Where(a => Combat.HasAnyValidWeapons(self, a))
.Where(a => !a.traits.Contains<Cloak>() || !a.traits.Get<Cloak>().Cloaked)
.OrderBy(a => (a.Location - self.Location).LengthSquared)
.FirstOrDefault();
}

View File

@@ -390,7 +390,6 @@ SS:
Sight: 6
Speed: 6
WaterBound: yes
TargetType: Sub
RenderUnit:
Cloak:
InitialDelay: .4