Esempio n. 1
0
        public static bool TSystem_AllowBeneficial(Mobile from, Mobile target)
        {
            if (StaticRef != null)
            {
                if (StaticRef.Started)
                {
                    if (StaticRef.IsParticipant(from) || StaticRef.IsParticipant(target))
                    {
                        if (StaticRef.AreAllies(from, target))
                        {
                            return(true);
                        }
                        else
                        {
                            return(false);
                        }
                    }
                }
            }

            #region Dueling System
            if (DuelCore.Enabled && from != target)
            {
                Duel fDuel = DuelCore.FindActiveDuel(from);
                Duel tDuel = DuelCore.FindActiveDuel(target);

                if (fDuel != null || tDuel != null)
                {
                    return(fDuel == tDuel);
                }
            }
            #endregion

            return(NotorietyHandlers.Mobile_AllowBeneficial(from, target));
        }
Esempio n. 2
0
        public static bool TSystem_AllowBeneficial(Mobile from, Mobile target)
        {
            if (StaticRef != null)
            {
                if (StaticRef.Started)
                {
                    if (StaticRef.IsParticipant(from) || StaticRef.IsParticipant(target))
                    {
                        if (StaticRef.AreAllies(from, target))
                        {
                            return(true);
                        }
                        else
                        {
                            return(false);
                        }
                    }
                }
            }

            return(NotorietyHandlers.Mobile_AllowBeneficial(from, target));
        }