Server.Items.DeceitBrazier.OnMovement C# (CSharp) Method

OnMovement() public method

public OnMovement ( Mobile m, Point3D oldLocation ) : void
m Mobile
oldLocation Point3D
return void
		public override void OnMovement( Mobile m, Point3D oldLocation )
		{
			if( m_NextSpawn < DateTime.Now ) // means we haven't spawned anything if the next spawn is below
			{
				if( Utility.InRange( m.Location, Location, 1 ) && !Utility.InRange( oldLocation, Location, 1 ) && m.Player && !(m.AccessLevel > AccessLevel.Player || m.Hidden) )
				{
					if( m_Timer == null || !m_Timer.Running )
						m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 2 ), new TimerCallback( HeedWarning ) );
				}
			}

			base.OnMovement( m, oldLocation );
		}