mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 13:18:56 +07:00
Made invisible units not become visible just by being next to an owned tile. (#7618)
This commit is contained in:
@ -500,7 +500,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
|||||||
return true
|
return true
|
||||||
if (hasUnique(UniqueType.InvisibleToNonAdjacent))
|
if (hasUnique(UniqueType.InvisibleToNonAdjacent))
|
||||||
return getTile().getTilesInDistance(1).none {
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user