Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

17 lines
320 B
Plaintext

void Regen(int x);
void main()
{
int x = GetLocalInt(OBJECT_SELF, "regen");
if (x > 0) Regen(x);
}
void Regen(int x)
{
if (GetIsObjectValid(OBJECT_SELF) && (!GetIsDead(OBJECT_SELF)))
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectHeal(x), OBJECT_SELF);
DelayCommand(6.0, Regen(x));
}
}