Table of Contents

Class HasActiveModifierTagCondition

Namespace
ElectricDrill.AstraRpgFramework.Conditions
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Condition that evaluates to true when at least one active modifier on Holder carries all tags in ElectricDrill.AstraRpgFramework.Conditions.HasActiveModifierTagCondition._tags.

Requires an IActiveModifierTagProvider component on the holder's GameObject (typically provided by the Modifiers package). Returns false when the holder is null or lacks the component.

[Serializable]
[TypeSelectableMenu("Leaf/Tag")]
public class HasActiveModifierTagCondition : Condition
Inheritance
object
HasActiveModifierTagCondition

Methods

Evaluate(EvaluationContext)

Evaluates this condition against the provided context.

public override bool Evaluate(EvaluationContext ctx)

Parameters

ctx EvaluationContext

Contextual data available to the condition (holder, performer, payload).

Returns

bool

true if the condition is satisfied; otherwise false.