using System; using Server.Targeting; namespace Server.Spells.Mysticism { public class EagleStrikeSpell : MysticSpell, ISpellTargetingMobile { private static SpellInfo m_Info = new SpellInfo( "Eagle Strike", "Kal Por Xen", -1, 9002, Reagent.Bloodmoss, Reagent.Bone, Reagent.SpidersSilk, Reagent.MandrakeRoot ); public EagleStrikeSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info) { } public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(1.25); public override double RequiredSkill => 20.0; public override int RequiredMana => 9; public override void OnCast() { Caster.Target = new SpellTargetMobile(this, TargetFlags.Harmful); } public void Target(Mobile m) { if (m == null) return; if (CheckHSequence(m)) { /* Conjures a magical eagle that assaults the Target with * its talons, dealing energy damage. */ SpellHelper.Turn(Caster, m); SpellHelper.CheckReflect(2, Caster, ref m); Caster.MovingParticles(m, 0x407A, 7, 0, false, true, 0, 0, 0xBBE, 0xFA6, 0xFFFF, 0); Caster.PlaySound(0x2EE); Timer.DelayCall(TimeSpan.FromSeconds(1.0), Damage, m); } FinishSequence(); } private void Damage(Mobile to) { if (to == null) return; double damage = GetNewAosDamage(19, 1, 5, to); SpellHelper.Damage(this, to, damage, 0, 0, 0, 0, 100); to.PlaySound(0x64D); } } }