ModernUO/Projects/UOContent/Spells/UnsummonTimer.cs
Kamron Batman d6d02de296
fix: Fixes spell mechanics and misc bugs (#1118)
- [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.
2022-07-14 22:01:59 -07:00

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();
}
}
}
}