mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-22 20:49:36 +07:00
Resolved #12735 - Adjacency checks are only for adjacent tiles, and not also for this tile
This commit is contained in:
parent
ced36b8e8a
commit
bfe1caac6a
@ -468,7 +468,7 @@ class Tile : IsPartOfGameInfoSerialization, Json.Serializable {
|
||||
// Rivers are odd, as they aren't technically part of any specific tile but still count towards adjacency
|
||||
if (terrainFilter == Constants.river) return isAdjacentToRiver()
|
||||
if (terrainFilter == Constants.freshWater && isAdjacentToRiver()) return true
|
||||
return (neighbors + this).any { neighbor -> neighbor.matchesFilter(terrainFilter, observingCiv) }
|
||||
return neighbors.any { neighbor -> neighbor.matchesFilter(terrainFilter, observingCiv) }
|
||||
}
|
||||
|
||||
/** Implements [UniqueParameterType.TileFilter][com.unciv.models.ruleset.unique.UniqueParameterType.TileFilter] */
|
||||
|
Loading…
Reference in New Issue
Block a user