mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-25 15:19:51 +07:00
Fix bombard crash.
This commit is contained in:
@ -144,6 +144,9 @@ class BattleTable(val worldScreen: WorldScreen): Table() {
|
||||
else if (attacker is CityCombatant)
|
||||
{
|
||||
canAttack = UnitAutomation().getBombardTargets(attacker.city).contains(defender.getTile())
|
||||
if (canAttack) {
|
||||
attackableEnemy = AttackableTile(attacker.getTile(), defender.getTile())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -191,4 +194,4 @@ class BattleTable(val worldScreen: WorldScreen): Table() {
|
||||
return healthBar
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user