Skip to content

Instantly share code, notes, and snippets.

@xjjon
Created January 24, 2023 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xjjon/f7f51598d535728de68af840c603e648 to your computer and use it in GitHub Desktop.
Save xjjon/f7f51598d535728de68af840c603e648 to your computer and use it in GitHub Desktop.
public void Activate()
{
if (Buff.IsEffectStacked || Duration <= 0)
{
ApplyEffect();
EffectStacks++;
}
if (Buff.IsDurationStacked || Duration <= 0)
{
Duration += Buff.Duration;
}
if (IsFinished) {
TickTime = Buff.TickTime; // Only reset the tick time if buff is not active
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment