From 8d4a16dd398995365c5561002976b4748257a2e7 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Thu, 14 Nov 2024 08:33:16 +0200 Subject: [PATCH] Resolved #12468 - great general unique works with conditionals (cache for 'has unique' ignores conditionals) --- core/src/com/unciv/logic/map/mapunit/MapUnitCache.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/mapunit/MapUnitCache.kt b/core/src/com/unciv/logic/map/mapunit/MapUnitCache.kt index c59e823ee2..48c75b423b 100644 --- a/core/src/com/unciv/logic/map/mapunit/MapUnitCache.kt +++ b/core/src/com/unciv/logic/map/mapunit/MapUnitCache.kt @@ -117,7 +117,7 @@ class MapUnitCache(private val mapUnit: MapUnit) { canEnterCityStates = mapUnit.hasUnique(UniqueType.CanTradeWithCityStateForGoldAndInfluence) - hasStrengthBonusInRadiusUnique = mapUnit.hasUnique(UniqueType.StrengthBonusInRadius) + hasStrengthBonusInRadiusUnique = mapUnit.hasUnique(UniqueType.StrengthBonusInRadius, StateForConditionals.IgnoreConditionals) hasCitadelPlacementUnique = mapUnit.getMatchingUniques(UniqueType.ConstructImprovementInstantly) .mapNotNull { mapUnit.civ.gameInfo.ruleset.tileImprovements[it.params[0]] } .any { it.hasUnique(UniqueType.OneTimeTakeOverTilesInRadius) }