ModernUO/Projects/Scripts/Spells/UnsummonTimer.cs
2019-08-02 18:16:11 -07:00

24 lines
No EOL
512 B
C#

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