protected override void OnTarget(Mobile from, object targeted)
{
if (targeted is Mobile && m_Spell.CheckBSequence((Mobile)targeted))
{
Mobile targ = (Mobile)targeted;
SpellHelper.Turn(m_Spell.Caster, targ);
if (targ.BeginAction(typeof(LightCycle)))
{
double value = Utility.Random(15, 25);
new LightCycle.NightSightTimer(targ).Start();
targ.LightLevel = 100;
Effects.SendTargetParticles(targ, 0x376A, 9, 32, 5007, EffectLayer.Waist);
targ.PlaySound(0x1E3);
}
else
{
from.SendMessage("{0} already have nightsight.", from == targ ? "You" : "They");
}
}
m_Spell.FinishSequence();
}