vacate cells earlier
This commit is contained in:
@@ -105,8 +105,10 @@ namespace OpenRA.Traits
|
|||||||
public IEnumerable<int2> OccupiedCells()
|
public IEnumerable<int2> OccupiedCells()
|
||||||
{
|
{
|
||||||
return (fromCell == toCell)
|
return (fromCell == toCell)
|
||||||
? new[] { fromCell }
|
? new[] { fromCell }
|
||||||
: new[] { fromCell, toCell };
|
: CanEnterCell(toCell)
|
||||||
|
? new[] { toCell }
|
||||||
|
: new[] { fromCell, toCell };
|
||||||
}
|
}
|
||||||
|
|
||||||
public UnitMovementType GetMovementType()
|
public UnitMovementType GetMovementType()
|
||||||
|
|||||||
Reference in New Issue
Block a user