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
|
return inRange
|
||||||
.Where(a => a.Owner != null && self.Owner.Stances[ a.Owner ] == Stance.Enemy)
|
.Where(a => a.Owner != null && self.Owner.Stances[ a.Owner ] == Stance.Enemy)
|
||||||
.Where(a => Combat.HasAnyValidWeapons(self, a))
|
.Where(a => Combat.HasAnyValidWeapons(self, a))
|
||||||
|
.Where(a => !a.traits.Contains<Cloak>() || !a.traits.Get<Cloak>().Cloaked)
|
||||||
.OrderBy(a => (a.Location - self.Location).LengthSquared)
|
.OrderBy(a => (a.Location - self.Location).LengthSquared)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -390,7 +390,6 @@ SS:
|
|||||||
Sight: 6
|
Sight: 6
|
||||||
Speed: 6
|
Speed: 6
|
||||||
WaterBound: yes
|
WaterBound: yes
|
||||||
TargetType: Sub
|
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
Cloak:
|
Cloak:
|
||||||
InitialDelay: .4
|
InitialDelay: .4
|
||||||
|
|||||||
Reference in New Issue
Block a user