Class HasBuffCondition
Condition that checks if a character currently has a specific buff applied.
[Serializable]
public class HasBuffCondition : BaseCondition, ICondition
- Inheritance
-
HasBuffCondition
- Implements
- Inherited Members
Fields
BuffTemplate
The buff template to check for on the character.
public BaseBuffTemplate BuffTemplate
Field Value
Methods
Evaluate(ICharacter, EventData)
Evaluates whether the character (or event target) currently has the specified buff.
public override bool Evaluate(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character to check, or the fallback if no event target is present.
eventDataEventDataOptional event data that may provide a different character to check.
Returns
- bool
True if the character has the buff; otherwise, false.