diff --git a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt index 386c29ae..844b21bc 100644 --- a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt +++ b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt @@ -81,9 +81,9 @@ class UnitMovementAlgorithms(val tileMap: TileMap){ if(newTilesToCheck.isEmpty()) return emptyList() // there is NO PATH (eg blocked by enemy units) - tilesToCheck = newTilesToCheck + tilesToCheck = newTilesToCheck.filterNot {tile -> tile.neighbors.all{newTilesToCheck.contains(it) || tilesToCheck.contains(it) } } distance++ } } -} \ No newline at end of file +}