From f40c0ad8b33170a754fc4a546591f3e1ffe2bde2 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Fri, 20 Nov 2020 11:52:14 +0200 Subject: [PATCH] AI settlers can no longer settle after movement with no movement points --- core/src/com/unciv/logic/automation/SpecificUnitAutomation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/automation/SpecificUnitAutomation.kt b/core/src/com/unciv/logic/automation/SpecificUnitAutomation.kt index fa0bad7817..96438cff5e 100644 --- a/core/src/com/unciv/logic/automation/SpecificUnitAutomation.kt +++ b/core/src/com/unciv/logic/automation/SpecificUnitAutomation.kt @@ -187,7 +187,7 @@ object SpecificUnitAutomation { } unit.movement.headTowards(bestCityLocation) - if (unit.getTile() == bestCityLocation) + if (unit.getTile() == bestCityLocation && unit.movement > 0) foundCityAction.action.invoke() }