A renamed unit shows that new name in can promote notifications (#9043)

This commit is contained in:
SomeTroglodyte 2023-03-26 21:29:45 +02:00 committed by GitHub
parent 837833e450
commit dc4e78f073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -559,7 +559,7 @@ object Battle {
}
if (!thisCombatant.isDefeated() && thisCombatant.unit.promotions.canBePromoted())
thisCombatant.getCivInfo().addNotification("[${thisCombatant.unit.name}] can be promoted!",thisCombatant.getTile().position, NotificationCategory.Units, thisCombatant.unit.name)
thisCombatant.getCivInfo().addNotification("[${thisCombatant.unit.displayName()}] can be promoted!",thisCombatant.getTile().position, NotificationCategory.Units, thisCombatant.unit.name)
}
private fun conquerCity(city: City, attacker: MapUnitCombatant) {