mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-03 00:45:19 -04: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()
|
hide()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(defender.isInvisible()
|
||||||
|
&& attacker.getCivInfo().viewableInvisibleUnitsTiles.contains(selectedTile)) {
|
||||||
|
hide()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
simulateBattle(attacker, defender)
|
simulateBattle(attacker, defender)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user