Esempio n. 1
0
			public InternalTarget( ParalyzePetSpell owner ) : base( 12, false, TargetFlags.Harmful )
			{
				m_Owner = owner;
			}
 public InternalTarget(ParalyzePetSpell owner)
     : base(12, false, TargetFlags.Harmful)
 {
     m_Owner = owner;
 }
Esempio n. 3
0
		//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;
		}