Fixed team war giving "they declared war on us" notification to a civ declaring war (#11900)

This commit is contained in:
Oskar Niesen
2024-07-02 12:49:07 -05:00
committed by GitHub
parent d9f0535a1f
commit bcbe6a6812

View File

@ -114,7 +114,7 @@ object DeclareWar {
allyCiv.addNotification("You and [${civInfo.civName}] have declared war against [${otherCiv.civName}]!",
NotificationCategory.Diplomacy, otherCiv.civName, NotificationIcon.War, civInfo.civName, allyCiv.civName)
civInfo.addNotification("[${civInfo.civName}] and [${allyCiv.civName}] have declared war against us!",
otherCiv.addNotification("[${civInfo.civName}] and [${allyCiv.civName}] have declared war against us!",
NotificationCategory.Diplomacy, otherCiv.civName, NotificationIcon.War, allyCiv.civName, civInfo.civName)
diplomacyManager.getCommonKnownCivsWithSpectators().filterNot { it == allyCiv }.forEach {