mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
Made invisible units not become visible just by being next to an owned tile. (#7618)
This commit is contained in:
parent
35eb71c937
commit
00e1ed25a1
@ -500,7 +500,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
||||
return true
|
||||
if (hasUnique(UniqueType.InvisibleToNonAdjacent))
|
||||
return getTile().getTilesInDistance(1).none {
|
||||
it.getOwner() == to || it.getUnits().any { unit -> unit.owner == to.civName }
|
||||
it.getUnits().any { unit -> unit.owner == to.civName }
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user