Skip to content

Commit

Permalink
Fix AutoCrusher uneffective.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob authored and PunkPun committed Oct 14, 2023
1 parent 876b66b commit 68d0533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/AutoCrusher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void INotifyIdle.TickIdle(Actor self)

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);
Expand Down

0 comments on commit 68d0533

Please sign in to comment.