Class ApplyBuffAction
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
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
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
initiatorICharacterThe character initiating the action.
eventDataEventDataThe event data containing the target information.