Example #1
0
        public virtual bool AllowHarmful(Mobile from, Mobile target)
        {
            if (m_Parent != null)
            {
                return(m_Parent.AllowHarmful(from, 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;
		}