Esempio n. 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);
        }
Esempio n. 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;
		}