diff --git a/core/src/com/unciv/logic/automation/UnitAutomation.kt b/core/src/com/unciv/logic/automation/UnitAutomation.kt index 16008eb6cd..7ef32735b7 100644 --- a/core/src/com/unciv/logic/automation/UnitAutomation.kt +++ b/core/src/com/unciv/logic/automation/UnitAutomation.kt @@ -413,7 +413,7 @@ class SpecificUnitAutomation{ //if no unit to follow, take refuge in city. val cityToGarison = unit.civInfo.cities.map {it.getCenterTile()} - .filter {it.civilianUnit == null && unit.canMoveTo(it)} + .filter {it.civilianUnit == null && unit.canMoveTo(it) && unit.movementAlgs().canReach(it)} .minBy { it.arialDistanceTo(unit.currentTile) } if (cityToGarison != null) { unit.movementAlgs().headTowards(cityToGarison)