Fix bombard crash.

This commit is contained in:
Duan Tao
2019-03-11 23:07:04 +08:00
parent 319b1c8524
commit dbf48ac7bf

View File

@ -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
}
}
}