Battle table no longer pops up when clicking on invisible submarines.

This commit is contained in:
Duan Tao 2019-04-03 19:18:21 +08:00
parent 6796c1868b
commit b368b32cd1

View File

@ -56,6 +56,13 @@ class BattleTable(val worldScreen: WorldScreen): Table() {
hide()
return
}
if(defender.isInvisible()
&& attacker.getCivInfo().viewableInvisibleUnitsTiles.contains(selectedTile)) {
hide()
return
}
simulateBattle(attacker, defender)
}