示例#1
0
        public override bool Validate(Mobile from)
        {
            SkillMasteryMove move = SpecialMove.GetCurrentMove(from) as SkillMasteryMove;

            if ((move == null || move.GetType() != this.GetType()) && !CheckCooldown(from))
            {
                return(false);
            }

            return(base.Validate(from));
        }
示例#2
0
        public override bool Validate(Mobile from)
        {
            SkillMasteryMove move = SpecialMove.GetCurrentMove(from) as SkillMasteryMove;

            if ((move == null || move.GetType() != this.GetType()) && !CheckCooldown(from))
            {
                return(false);
            }

            if (from is PlayerMobile && from.Skills.CurrentMastery != MoveSkill)
            {
                from.SendLocalizedMessage(1115664); // You are not on the correct path for using this mastery ability.
                return(false);
            }

            return(base.Validate(from));
        }