Files
abysmal-isle/Scripts/Spells/UnsummonTimer.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

24 lines
604 B
C#

using System;
using Server.Mobiles;
namespace Server.Spells
{
class UnsummonTimer : Timer
{
private readonly BaseCreature m_Creature;
private readonly Mobile m_Caster;
public UnsummonTimer(Mobile caster, BaseCreature creature, TimeSpan delay)
: base(delay)
{
this.m_Caster = caster;
this.m_Creature = creature;
this.Priority = TimerPriority.OneSecond;
}
protected override void OnTick()
{
if (!this.m_Creature.Deleted)
this.m_Creature.Delete();
}
}
}