mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07:00
Resolved #7036 - hide bombard notification after executing bombardment
This commit is contained in:
@ -191,6 +191,12 @@ object Battle {
|
|||||||
reduceAttackerMovementPointsAndAttacks(attacker, defender)
|
reduceAttackerMovementPointsAndAttacks(attacker, defender)
|
||||||
|
|
||||||
if (!isAlreadyDefeatedCity) postBattleAddXp(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){
|
private fun triggerDefeatUniques(ourUnit: MapUnitCombatant, enemy: ICombatant, attackedTile: Tile){
|
||||||
|
Reference in New Issue
Block a user