mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07: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:
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user