From 68d053336bbc5599f8f8309f012f3ba0ef1853c7 Mon Sep 17 00:00:00 2001 From: dnqbob Date: Sat, 14 Oct 2023 21:49:53 +0800 Subject: [PATCH] Fix AutoCrusher uneffective. --- OpenRA.Mods.Common/Traits/AutoCrusher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/AutoCrusher.cs b/OpenRA.Mods.Common/Traits/AutoCrusher.cs index b4b19508a7..3b5de41008 100644 --- a/OpenRA.Mods.Common/Traits/AutoCrusher.cs +++ b/OpenRA.Mods.Common/Traits/AutoCrusher.cs @@ -75,7 +75,7 @@ namespace OpenRA.Mods.Common.Traits 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; var targetRelationship = self.Owner.RelationshipWith(target.Owner);