Civilian units no longer have promote action

This commit is contained in:
Yair Morgenstern 2018-06-26 23:08:50 +03:00
parent 15b602da1f
commit 7836f6237f

View File

@ -49,7 +49,7 @@ class UnitActions {
actionList += UnitAction("Fortify", { unit.action = "Fortify 0" }, unit.currentMovement != 0f)
}
if(unit.promotions.canBePromoted()){
if(unit.getBaseUnit().unitType!= UnitType.Civilian && unit.promotions.canBePromoted()){
actionList += UnitAction("Promote",
{UnCivGame.Current.screen = PromotionPickerScreen(unit)},
unit.currentMovement != 0f)