From d3f7a73cf35c4f244d7146409c1b38faf76b8954 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 20 May 2019 21:53:18 +0200 Subject: [PATCH] allow siege units to go sleeping even when set up --- core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt index 8f44f65272..4ab1721f8c 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt @@ -41,7 +41,7 @@ class UnitActions { val workingOnImprovement = unit.hasUnique("Can build improvements on tiles") && unit.currentTile.hasImprovementInProgress() if(!unit.isFortified() && (!unit.canFortify() || unit.health<100) && unit.currentMovement >0 - && unit.action!="Set Up" && !workingOnImprovement) { + && !workingOnImprovement) { val sleeping = unit.action == "Sleep" actionList += UnitAction("Sleep", !sleeping, sleeping) { unit.action = "Sleep"