mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-25 15:19:51 +07:00
Upgraded unit now gets promotions working.
This commit is contained in:
@ -85,6 +85,7 @@ class UnitActions {
|
|||||||
val newunit = unit.civInfo.placeUnitNearTile(unitTile.position, upgradedUnit.name)
|
val newunit = unit.civInfo.placeUnitNearTile(unitTile.position, upgradedUnit.name)
|
||||||
newunit.health = unit.health
|
newunit.health = unit.health
|
||||||
newunit.promotions = unit.promotions
|
newunit.promotions = unit.promotions
|
||||||
|
newunit.updateUniques()
|
||||||
newunit.currentMovement = 0f
|
newunit.currentMovement = 0f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user