mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 14:48:56 +07:00
Air units now destroyed when conquering a city - I think this was the cause of some crashes
This commit is contained in:
@ -210,6 +210,7 @@ class Battle(val gameInfo:GameInfo) {
|
||||
city.getCenterTile().apply {
|
||||
if(militaryUnit!=null) militaryUnit!!.destroy()
|
||||
if(civilianUnit!=null) captureCivilianUnit(attacker,MapUnitCombatant(civilianUnit!!))
|
||||
for(airUnit in airUnits.toList()) airUnit.destroy()
|
||||
}
|
||||
|
||||
if (!attackerCiv.isMajorCiv()){
|
||||
|
Reference in New Issue
Block a user