protected override void OnTick()
{
if ( m_Owner.Deleted )
{
Stop();
return;
}
if ( (m_Stage++ % 4) == 0 || !m_Owner.Move( m_Owner.Direction ) )
m_Owner.Direction = (Direction)Utility.Random( 8 );
if ( m_Stage > 16 )
{
Effects.SendLocationParticles( EffectItem.Create( m_Owner.Location, m_Owner.Map, EffectItem.DefaultDuration ), 0x3728, 10, 10, 2023 );
m_Owner.PlaySound( 0x1FE );
m_Owner.Delete();
}
}
}