From dc4e78f073c838d21f27b661374e3d1ac54cc0fa Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Sun, 26 Mar 2023 21:29:45 +0200 Subject: [PATCH] A renamed unit shows that new name in can promote notifications (#9043) --- core/src/com/unciv/logic/battle/Battle.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/battle/Battle.kt b/core/src/com/unciv/logic/battle/Battle.kt index a18bc442a7..853a6b8fb0 100644 --- a/core/src/com/unciv/logic/battle/Battle.kt +++ b/core/src/com/unciv/logic/battle/Battle.kt @@ -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) {