Resolved #839 - Set up takes 1 movement point

This commit is contained in:
Yair Morgenstern 2019-06-03 20:26:05 +03:00
parent cf37122304
commit 09079bd76f

View File

@ -128,12 +128,7 @@ class UnitActions {
val setUp = unit.action == "Set Up"
actionList+=UnitAction("Set up", unit.currentMovement >0 && !setUp, currentAction = setUp ) {
unit.action="Set Up"
// setting up uses up all movement points
// this is to avoid problems with the idle state:
// - unit should not be idle when setting up right now
// - unit should be idle when set up in the past
unit.currentMovement=0f
unitTable.selectedUnit = null
unit.useMovementPoints(1f)
}.sound("setup")
}