mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01:00
Can no longer promote units with 0 movement by sneaking into the promotion screen from elsewhere
This commit is contained in:
parent
0d78659e49
commit
7a00ebe2ec
|
|
@ -40,6 +40,7 @@ class PromotionPickerScreen(val unit: MapUnit) : PickerScreen() {
|
|||
val canBePromoted = unit.promotions.canBePromoted()
|
||||
val canChangeState = game.worldScreen.canChangeState
|
||||
val canPromoteNow = canBePromoted && canChangeState
|
||||
&& unit.currentMovement > 0 && unit.attacksThisTurn == 0
|
||||
if (!canPromoteNow)
|
||||
rightSideButton.isEnabled = false
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user