예제 #1
0
        public static bool HasAnyAcceleratedSkillGain(Mobile from)
        {
            if (ScrollOfAlacrity.HasAnyAcceleratedSkillGain(from))
            {
                return(true);
            }

            if (from is PlayerMobile && ((PlayerMobile)from).Quests.Any(q => q.Objectives.OfType <ApprenticeObjective>().Any()))
            {
                return(true);
            }

            return(false);
        }
예제 #2
0
        public static bool HasAcceleratedSkillGain(Mobile from, Skill skill)
        {
            if (ScrollOfAlacrity.HasAcceleratedSkillGain(from, skill))
            {
                return(true);
            }

            if (from is PlayerMobile && QuestHelper.EnhancedSkill((PlayerMobile)from, skill))
            {
                return(true);
            }

            return(false);
        }