Skip to content

Commit

Permalink
Resolved #12468 - great general unique works with conditionals (cache…
Browse files Browse the repository at this point in the history
… for 'has unique' ignores conditionals)
  • Loading branch information
yairm210 committed Nov 14, 2024
1 parent 386c081 commit 8d4a16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/com/unciv/logic/map/mapunit/MapUnitCache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 8d4a16d

Please sign in to comment.