mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Captured unit notifications now sent to the correct civ :)
This commit is contained in:
parent
2b4a9d0766
commit
4d02cdeb3b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user