mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 17:32:57 +07:00
Fix attackable detection.
This commit is contained in:
parent
11871991d3
commit
b91e1f418f
@ -121,7 +121,7 @@ class UnitAutomation{
|
||||
|
||||
//only submarine and destroyer can attack submarine
|
||||
if (tileCombatant.isInvisible()
|
||||
&& (!unit.hasUnique("Can attack submarines") || unit.civInfo.viewableInvisibleUnitsTiles.map { it.position }.contains(tile.position))){
|
||||
&& (!unit.hasUnique("Can attack submarines") || !unit.civInfo.viewableInvisibleUnitsTiles.map { it.position }.contains(tile.position))){
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user