mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-11 00:08:58 +07:00
A visually challenged unit with UniqueType.NoSight should still see its own feet (#11505)
This commit is contained in:
@ -653,7 +653,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
|||||||
val oldViewableTiles = viewableTiles
|
val oldViewableTiles = viewableTiles
|
||||||
|
|
||||||
viewableTiles = when {
|
viewableTiles = when {
|
||||||
hasUnique(UniqueType.NoSight) -> hashSetOf()
|
hasUnique(UniqueType.NoSight) -> hashSetOf(getTile()) // 0 sight distance still means we can see the Tile we're in
|
||||||
hasUnique(UniqueType.CanSeeOverObstacles) ->
|
hasUnique(UniqueType.CanSeeOverObstacles) ->
|
||||||
getTile().getTilesInDistance(getVisibilityRange()).toHashSet() // it's that simple
|
getTile().getTilesInDistance(getVisibilityRange()).toHashSet() // it's that simple
|
||||||
else -> getTile().getViewableTilesList(getVisibilityRange()).toHashSet()
|
else -> getTile().getViewableTilesList(getVisibilityRange()).toHashSet()
|
||||||
|
Reference in New Issue
Block a user