@@ -109,8 +109,7 @@ namespace OpenRA.Mods.RA.Move
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
var blockingActors = world.ActorMap.GetUnitsAt(cell)
|
var blockingActors = world.ActorMap.GetUnitsAt(cell)
|
||||||
// Don't fail if the unit is already in this cell
|
.Where(x => x != ignoreActor)
|
||||||
.Where(x => x != ignoreActor && x != self)
|
|
||||||
// Neutral/enemy units are blockers. Allied units that are moving are not blockers.
|
// Neutral/enemy units are blockers. Allied units that are moving are not blockers.
|
||||||
.Where(x => blockedByMovers || ((self.Owner.Stances[x.Owner] != Stance.Ally) || !IsMovingInMyDirection(self, x)))
|
.Where(x => blockedByMovers || ((self.Owner.Stances[x.Owner] != Stance.Ally) || !IsMovingInMyDirection(self, x)))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user