allow siege units to go sleeping even when set up

This commit is contained in:
martin 2019-05-20 21:53:18 +02:00 committed by Yair Morgenstern
parent ca05c10016
commit d3f7a73cf3

View File

@ -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"