From e8714fb9503f0b7bfe60006e32d600350a6139f8 Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Tue, 23 Apr 2024 22:59:27 +0200 Subject: [PATCH] A visually challenged unit with UniqueType.NoSight should still see its own feet (#11505) --- core/src/com/unciv/logic/map/mapunit/MapUnit.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/mapunit/MapUnit.kt b/core/src/com/unciv/logic/map/mapunit/MapUnit.kt index b9071d1c95..f9c779244e 100644 --- a/core/src/com/unciv/logic/map/mapunit/MapUnit.kt +++ b/core/src/com/unciv/logic/map/mapunit/MapUnit.kt @@ -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()