mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-09 04:09:35 +07:00
Battle table no longer pops up when clicking on invisible submarines.
This commit is contained in:
parent
6796c1868b
commit
b368b32cd1
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user