From 4d02cdeb3ba62a3490786919dd4105f11c73f8b2 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 14 Feb 2022 14:47:58 +0200 Subject: [PATCH] Captured unit notifications now sent to the correct civ :) --- core/src/com/unciv/logic/battle/Battle.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/battle/Battle.kt b/core/src/com/unciv/logic/battle/Battle.kt index f3177b96f9..b8f476ab27 100644 --- a/core/src/com/unciv/logic/battle/Battle.kt +++ b/core/src/com/unciv/logic/battle/Battle.kt @@ -552,10 +552,10 @@ object Battle { } if (!wasDestroyedInstead) - capturedUnit.civInfo.addNotification("An enemy [" + attacker.getName() + "] has captured our [" + defender.getName() + "]", + defenderCiv.addNotification("An enemy [" + attacker.getName() + "] has captured our [" + defender.getName() + "]", defender.getTile().position, attacker.getName(), NotificationIcon.War, defender.getName()) else - capturedUnit.civInfo.addNotification("An enemy [" + attacker.getName() + "] has destroyed our [" + defender.getName() + "]", + defenderCiv.addNotification("An enemy [" + attacker.getName() + "] has destroyed our [" + defender.getName() + "]", defender.getTile().position, attacker.getName(), NotificationIcon.War, defender.getName()) if (checkDefeat)