mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 14:57:58 +07:00
isTriggerable fixed to reinclude timed uniques
This commit is contained in:
@ -33,7 +33,7 @@ class Unique(val text: String, val sourceObjectType: UniqueTarget? = null, val s
|
||||
val isTriggerable = type != null && (
|
||||
type.targetTypes.contains(UniqueTarget.Triggerable)
|
||||
|| type.targetTypes.contains(UniqueTarget.UnitTriggerable)
|
||||
// <for [amount] turns]> in effect makes any unique become a triggerable unique
|
||||
|| conditionals.any { it.type == UniqueType.ConditionalTimedUnique }
|
||||
)
|
||||
|
||||
val allParams = params + conditionals.flatMap { it.params }
|
||||
|
Reference in New Issue
Block a user