mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 07:16:54 +07:00
baseUnitFilter accepts all uniques that exist on units - see #6430
This commit is contained in:
parent
16ea8fe8f0
commit
bc16a69bd2
@ -72,6 +72,7 @@ enum class UniqueParameterType(
|
||||
override fun getErrorSeverity(parameterText: String, ruleset: Ruleset):
|
||||
UniqueType.UniqueComplianceErrorSeverity? {
|
||||
if (UnitName.getErrorSeverity(parameterText, ruleset) == null) return null
|
||||
if (ruleset.units.values.any { it.uniques.contains(parameterText) }) return null
|
||||
return UnitTypeFilter.getErrorSeverity(parameterText, ruleset)
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user