mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-28 05:39:10 +07:00
If a unit can be promoted twice, the promotion picker remains open after you pick the first promotion
This commit is contained in:
@ -17,7 +17,8 @@ class PromotionPickerScreen(mapUnit: MapUnit) : PickerScreen() {
|
||||
rightSideButton.setText("Pick promotion")
|
||||
rightSideButton.addClickListener {
|
||||
mapUnit.promotions.addPromotion(selectedPromotion!!.name)
|
||||
game.setWorldScreen()
|
||||
if(mapUnit.promotions.canBePromoted()) game.screen = PromotionPickerScreen(mapUnit)
|
||||
else game.setWorldScreen()
|
||||
dispose()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user