#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
5df497787a
7510 changed files with 416048 additions and 0 deletions
24
Scripts/Spells/Base/UnsummonTimer.cs
Normal file
24
Scripts/Spells/Base/UnsummonTimer.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Spells
|
||||
{
|
||||
class UnsummonTimer : Timer
|
||||
{
|
||||
private BaseCreature m_Creature;
|
||||
private Mobile m_Caster;
|
||||
|
||||
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