- [X] Fixes NPE from account tags. - [X] Fixes bad skill check due to missing cast to double. - [X] Fixes water elemental duration. - [X] Standardizes spell summon duration by expansion.
23 lines
470 B
C#
23 lines
470 B
C#
using System;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Spells
|
|
{
|
|
internal class UnsummonTimer : Timer
|
|
{
|
|
private readonly BaseCreature m_Creature;
|
|
|
|
public UnsummonTimer(BaseCreature creature, TimeSpan delay) : base(delay)
|
|
{
|
|
m_Creature = creature;
|
|
}
|
|
|
|
protected override void OnTick()
|
|
{
|
|
if (!m_Creature.Deleted)
|
|
{
|
|
m_Creature.Delete();
|
|
}
|
|
}
|
|
}
|
|
}
|