Example #1
0
 public virtual bool AllowHarmful(Mobile from, Mobile target)
 {
     if (Mobile.AllowHarmfulHandler != null)
     {
         return(Mobile.AllowHarmfulHandler(from, target));
     }
     return(true);
 }
Example #2
0
        public virtual bool AllowHarmful(Mobile from, IDamageable target)
        {
            if (m_Parent != null)
            {
                return(m_Parent.AllowHarmful(from, target));
            }

            if (Mobile.AllowHarmfulHandler != null)
            {
                return(Mobile.AllowHarmfulHandler(from, target));
            }

            return(true);
        }
Example #3
0
        public virtual bool AllowHarmful(Mobile from, Mobile target)
        {
            if (Mobile.AllowHarmfulHandler != null)
            {
                return(Mobile.AllowHarmfulHandler(from, target));
            }

            return(true);

            /*if ( (Map.Rules & MapRules.HarmfulRestrictions) != 0 )
             *      return false;
             * else
             *      return true;*/
        }