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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -390,7 +390,6 @@ SS:
|
||||
Sight: 6
|
||||
Speed: 6
|
||||
WaterBound: yes
|
||||
TargetType: Sub
|
||||
RenderUnit:
|
||||
Cloak:
|
||||
InitialDelay: .4
|
||||
|
||||
Reference in New Issue
Block a user