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

IsHarmfulCriminal() public method

public IsHarmfulCriminal ( Mobile target ) : bool
target Mobile
return bool
        public override bool IsHarmfulCriminal( Mobile target )
        {
            if ( (Controlled && target == m_ControlMaster) || (Summoned && target == m_SummonMaster) )
                return false;

            if ( target is BaseCreature && ((BaseCreature)target).InitialInnocent && !((BaseCreature)target).Controlled )
                return false;

            if ( target is PlayerMobile && ((PlayerMobile)target).PermaFlags.Count > 0 )
                return false;

            return base.IsHarmfulCriminal( target );
        }
BaseCreature