mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Fix bombard crash.
This commit is contained in:
parent
319b1c8524
commit
dbf48ac7bf
@ -144,6 +144,9 @@ class BattleTable(val worldScreen: WorldScreen): Table() {
|
|||||||
else if (attacker is CityCombatant)
|
else if (attacker is CityCombatant)
|
||||||
{
|
{
|
||||||
canAttack = UnitAutomation().getBombardTargets(attacker.city).contains(defender.getTile())
|
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
|
return healthBar
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user