Made invisible units not become visible just by being next to an owned tile. (#7618)

This commit is contained in:
Liam A 2022-08-06 04:58:57 -05:00 committed by GitHub
parent 35eb71c937
commit 00e1ed25a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}