Table of Contents

Class HasBuffCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

BaseBuffTemplate

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

initiator ICharacter

The character to check, or the fallback if no event target is present.

eventData EventData

Optional event data that may provide a different character to check.

Returns

bool

True if the character has the buff; otherwise, false.