mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 01:39:40 +07:00
Merge pull request #338 from ninjatao/fix_upgrade
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