mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 05:09:25 +07:00
Resolved #7036 - hide bombard notification after executing bombardment
This commit is contained in:
@ -191,6 +191,12 @@ object Battle {
|
||||
reduceAttackerMovementPointsAndAttacks(attacker, defender)
|
||||
|
||||
if (!isAlreadyDefeatedCity) postBattleAddXp(attacker, defender)
|
||||
|
||||
if (attacker is CityCombatant){
|
||||
val cityCanBombardNotification = attacker.getCivInfo().notifications
|
||||
.firstOrNull { it.text == "Your city [${attacker.getName()}] can bombard the enemy!" }
|
||||
attacker.getCivInfo().notifications.remove(cityCanBombardNotification)
|
||||
}
|
||||
}
|
||||
|
||||
private fun triggerDefeatUniques(ourUnit: MapUnitCombatant, enemy: ICombatant, attackedTile: Tile){
|
||||
|
Reference in New Issue
Block a user