20 DebugConsole.ThrowError($
"Used data-reliant ability condition when data is incompatible! Expected {expectedData}, but received {abilityObject} in talent {characterTalent.DebugIdentifier}",
27 DebugConsole.ThrowError($
"Used data-reliant ability condition in a state-based ability in talent {characterTalent.DebugIdentifier}! This is not allowed.",
33 if (abilityObject is
null) {
return invert; }
void LogAbilityConditionError(AbilityObject abilityObject, Type expectedData)
abstract bool MatchesConditionSpecific(AbilityObject abilityObject)
override bool MatchesCondition(AbilityObject abilityObject)
override bool MatchesCondition()
AbilityConditionData(CharacterTalent characterTalent, ContentXElement conditionElement)
Some conditions rely on specific ability data that is integrally connected to the AbilityEffectType....
CharacterTalent characterTalent
readonly TalentPrefab Prefab
ContentPackage? ContentPackage