Server.Mobiles.MageAI.Run C# (CSharp) Méthode

Run() public méthode

public Run ( Direction d ) : void
d Direction
Résultat void
		public void Run( Direction d )
		{
			if( ( m_Mobile.Spell != null && m_Mobile.Spell.IsCasting ) || m_Mobile.Paralyzed || m_Mobile.Frozen || m_Mobile.DisallowAllMoves )
				return;

			m_Mobile.Direction = d | Direction.Running;

			if( !DoMove( m_Mobile.Direction, true ) )
				OnFailedMove();
		}