Class Stun
- Namespace
- AshesOfVelsingrad.Data
- Assembly
- Ashes of Velsingrad.dll
public sealed class Stun : StatusEffect<UnitSystem>, IStatusEffect
- Inheritance
-
Stun
- Implements
- Inherited Members
Constructors
Stun(int)
public Stun(int duration)
Parameters
durationint
Methods
OnApply(IEffectTarget<UnitSystem>)
Called when this effect is applied to a target. Override this to implement custom logic (e.g., visual/audio feedback, stat changes).
public override void OnApply(IEffectTarget<UnitSystem> target)
Parameters
targetIEffectTarget<UnitSystem>The target receiving the effect.
OnRemove(IEffectTarget<UnitSystem>)
Called when this effect is removed from a target. Override this to implement cleanup logic (e.g., removing buffs, stopping visual/audio feedback).
public override void OnRemove(IEffectTarget<UnitSystem> target)
Parameters
targetIEffectTarget<UnitSystem>The target losing the effect.