Table of Contents

Class ApplyBuffAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Action that applies a specified buff to a target character, potentially stacking it multiple times.

[Serializable]
public class ApplyBuffAction : BaseAction, IAction
Inheritance
ApplyBuffAction
Implements
Inherited Members

Fields

BuffTemplate

The buff template to apply to the target.

public BaseBuffTemplate BuffTemplate

Field Value

BaseBuffTemplate

StacksValue

The value provider that determines the number of stacks to apply.

[Tooltip("The value provider that determines the number of buff stacks to apply.")]
[SerializeReference]
public IIntValueProvider StacksValue

Field Value

IIntValueProvider

Methods

Execute(ICharacter, EventData)

Applies the specified buff to the target character, stacking it the computed number of times.

public override void Execute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character initiating the action.

eventData EventData

The event data containing the target information.