Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
24
Projects/Scripts/Spells/UnsummonTimer.cs
Normal file
24
Projects/Scripts/Spells/UnsummonTimer.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue