Fix AutoCrusher uneffective.

This commit is contained in:
dnqbob
2023-10-14 21:49:53 +08:00
committed by Gustas
parent 876b66b295
commit 68d053336b

View File

@@ -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);