mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Merge pull request #627 from ninjatao/invisible_submarine
Battle table no longer pops up when clicking on invisible submarines.
This commit is contained in:
commit
55860fb480
@ -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