mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 23:44:24 +07:00
Resolved #12468 - great general unique works with conditionals (cache for 'has unique' ignores conditionals)
This commit is contained in:
parent
386c0812be
commit
8d4a16dd39
@ -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) }
|
||||
|
Loading…
Reference in New Issue
Block a user