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

CheckTeachingMatch() public method

public CheckTeachingMatch ( Server.Mobile m ) : bool
m Server.Mobile
return bool
        public virtual bool CheckTeachingMatch( Mobile m )
        {
            if ( m_Teaching == (SkillName)(-1) )
                return false;

            if ( m is PlayerMobile )
                return ( ((PlayerMobile)m).Learning == m_Teaching );

            return true;
        }
BaseCreature