mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Can upgrade unit if any movement is left, as per Civ V
This commit is contained in:
@ -330,8 +330,9 @@ object UnitActions {
|
||||
}.takeIf {
|
||||
isFree ||
|
||||
(
|
||||
unit.civInfo.gold >= goldCostOfUpgrade && !unit.isEmbarked()
|
||||
&& unit.currentMovement == unit.getMaxMovement().toFloat()
|
||||
unit.civInfo.gold >= goldCostOfUpgrade
|
||||
&& unit.currentMovement > 0
|
||||
&& !unit.isEmbarked()
|
||||
)
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user