From 2d2117936e77e2754dc518d6e3260befad10ec54 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Fri, 20 Nov 2020 13:45:45 +0200 Subject: [PATCH] Whoops wrong field --- 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 96438cff5e..b6530880e1 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 && unit.movement > 0) + if (unit.getTile() == bestCityLocation && unit.currentMovement > 0) foundCityAction.action.invoke() }