Created
January 24, 2023 22:21
-
-
Save xjjon/f7f51598d535728de68af840c603e648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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