Merge pull request #338 from ninjatao/fix_upgrade

Upgraded unit now gets promotions working.
This commit is contained in:
yairm210 2018-12-11 20:49:28 +02:00 committed by GitHub
commit b4544abfc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,7 @@ class UnitActions {
val newunit = unit.civInfo.placeUnitNearTile(unitTile.position, upgradedUnit.name)
newunit.health = unit.health
newunit.promotions = unit.promotions
newunit.updateUniques()
newunit.currentMovement = 0f
}
}