Example #1
0
        public virtual bool AllowBenificial(Mobile from, Mobile target)
        {
            if (Mobile.AllowBeneficialHandler != null)
            {
                return(Mobile.AllowBeneficialHandler(from, target));
            }

            return(true);

            /*if ( (Map.Rules & MapRules.BeneficialRestrictions) != 0 )
             * {
             *      int n = Notoriety.Compute( from, target );
             *
             *      if (n == Notoriety.Criminal || n == Notoriety.Murderer)
             *      {
             *              return false;
             *      }
             *      else if ( target.Guild != null && target.Guild.Type != Guilds.GuildType.Regular )//disallow Chaos/order for healing each other or being healed by blues
             *      {
             *              if ( from.Guild == null || from.Guild.Type != target.Guild.Type )
             *                      return false;
             *      }
             * }
             * return true;*/
        }
Example #2
0
 public virtual bool AllowBenificial(Mobile from, Mobile target)
 {
     if (Mobile.AllowBeneficialHandler != null)
     {
         return(Mobile.AllowBeneficialHandler(from, target));
     }
     return(true);
 }
Example #3
0
		public virtual bool AllowBeneficial(Mobile from, Mobile target)
		{
			if (m_Parent != null)
			{
				return m_Parent.AllowBeneficial(from, target);
			}

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

			return true;
		}