Server.Mobiles.BaseCreature.RemoveFollowers C# (CSharp) Method

RemoveFollowers() public method

public RemoveFollowers ( ) : void
return void
        public void RemoveFollowers()
        {
            if ( m_ControlMaster != null )
            {
                m_ControlMaster.Followers -= ControlSlots;
                if( m_ControlMaster is PlayerMobile )
                {
                    ((PlayerMobile)m_ControlMaster).AllFollowers.Remove( this );
                    if( ((PlayerMobile)m_ControlMaster).AutoStabled.Contains( this ) )
                        ((PlayerMobile)m_ControlMaster).AutoStabled.Remove( this );
                }
            }
            else if ( m_SummonMaster != null )
            {
                m_SummonMaster.Followers -= ControlSlots;
                if( m_SummonMaster is PlayerMobile )
                {
                    ((PlayerMobile)m_SummonMaster).AllFollowers.Remove( this );
                }
            }

            if ( m_ControlMaster != null && m_ControlMaster.Followers < 0 )
                m_ControlMaster.Followers = 0;

            if ( m_SummonMaster != null && m_SummonMaster.Followers < 0 )
                m_SummonMaster.Followers = 0;
        }
BaseCreature