mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-13 19:39:34 +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:
parent
23a9886de7
commit
5ee0c47e22
@ -21,8 +21,8 @@ android {
|
||||
applicationId "com.unciv.game"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 26
|
||||
versionCode 102
|
||||
versionName "2.6.4"
|
||||
versionCode 103
|
||||
versionName "2.6.5"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user