public InternalTarget( ParalyzePetSpell owner ) : base( 12, false, TargetFlags.Harmful ) { m_Owner = owner; }
public InternalTarget(ParalyzePetSpell owner) : base(12, false, TargetFlags.Harmful) { m_Owner = owner; }
//paralyze pets public virtual Spell DoParalyze(Mobile toParalyze) { Spell spell = null; BaseCreature c = (BaseCreature)toParalyze; if (spell == null) { if ((int)m_Mobile.GetDistanceToSqrt(toParalyze) == 1 || (int)m_Mobile.GetDistanceToSqrt(toParalyze) == 2) spell = new GenieTeleport(m_Mobile, null); else if (!m_Mobile.InRange(toParalyze, 3) && c.Controlled && c.ControlMaster != null && !c.Paralyzed) spell = new ParalyzePetSpell(m_Mobile, null); } return spell; }