remove needless duplicate Health trait query
This commit is contained in:
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA
|
|||||||
var target = inRange
|
var target = inRange
|
||||||
.Where(a => a != self && a.AppearsFriendlyTo(self))
|
.Where(a => a != self && a.AppearsFriendlyTo(self))
|
||||||
.Where(a => a.IsInWorld && !a.IsDead())
|
.Where(a => a.IsInWorld && !a.IsDead())
|
||||||
.Where(a => a.HasTrait<Health>() && a.GetDamageState() > DamageState.Undamaged)
|
.Where(a => a.GetDamageState() > DamageState.Undamaged)
|
||||||
.Where(a => attack.HasAnyValidWeapons(Target.FromActor(a)))
|
.Where(a => attack.HasAnyValidWeapons(Target.FromActor(a)))
|
||||||
.ClosestTo( self.CenterLocation );
|
.ClosestTo( self.CenterLocation );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user