Fix AutoCrusher uneffective.
This commit is contained in:
@@ -75,7 +75,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
bool IsValidCrushTarget(Actor self, Actor target)
|
bool IsValidCrushTarget(Actor self, Actor target)
|
||||||
{
|
{
|
||||||
if (target == self || target.IsDead || !target.IsInWorld || self.Location != target.Location || !target.IsAtGroundLevel())
|
if (target == self || target.IsDead || !target.IsInWorld || self.Location == target.Location || !target.IsAtGroundLevel())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var targetRelationship = self.Owner.RelationshipWith(target.Owner);
|
var targetRelationship = self.Owner.RelationshipWith(target.Owner);
|
||||||
|
|||||||
Reference in New Issue
Block a user