Can upgrade unit if any movement is left, as per Civ V

This commit is contained in:
yairm210
2021-11-03 10:10:43 +02:00
parent ad545e47da
commit 05b741b3e5

View File

@ -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()
)
}
)