Actually no

This commit is contained in:
Yair Morgenstern 2023-01-16 22:07:05 +02:00
parent f89c2330aa
commit 3f3235c1af

View File

@ -305,8 +305,7 @@ class UniqueMap: HashMap<String, ArrayList<Unique>>() {
/** Adds one [unique] unless it has a ConditionalTimedUnique conditional */
fun addUnique(unique: Unique) {
if (unique.conditionals.any { it.type == UniqueType.ConditionalTimedUnique }
&& unique.conditionals.none { it.type!!.targetTypes.contains(UniqueTarget.TriggerCondition)}) return
if (unique.conditionals.any { it.type == UniqueType.ConditionalTimedUnique }) return
if (!containsKey(unique.placeholderText)) this[unique.placeholderText] = ArrayList()
this[unique.placeholderText]!!.add(unique)
}