mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 10:01:39 +07:00
A visually challenged unit with UniqueType.NoSight should still see its own feet (#11505)
This commit is contained in:
parent
a3d56845f9
commit
e8714fb950
@ -653,7 +653,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
||||
val oldViewableTiles = viewableTiles
|
||||
|
||||
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) ->
|
||||
getTile().getTilesInDistance(getVisibilityRange()).toHashSet() // it's that simple
|
||||
else -> getTile().getViewableTilesList(getVisibilityRange()).toHashSet()
|
||||
|
Loading…
Reference in New Issue
Block a user