示例#1
0
        public override bool OnAugment(Mobile from, object target)
        {
            if (target is BaseWeapon)
            {
                XmlCustomAttacks.AddAttack(target, XmlCustomAttacks.SpecialAttacks.ParalyzingFear);

                from.SendMessage("The target has gained the special attack Paralyzing Fear");
                return(true);
            }
            else if (target is BaseShield)
            {
                XmlCustomDefenses.AddDefense(target, XmlCustomDefenses.SpecialDefenses.ParalyzingFear);

                from.SendMessage("The target has gained the special defense Paralyzing Fear");
                return(true);
            }

            return(false);
        }
示例#2
0
        public override bool OnAugment(Mobile from, object target)
        {
            if (target is BaseWeapon)
            {
                // adds the custom attack attachment
                XmlCustomAttacks.AddAttack(target, XmlCustomAttacks.SpecialAttacks.StamDrain);

                from.SendMessage("The target has gained the special attack Stamina Drain");
                return(true);
            }
            else if (target is BaseShield)
            {
                // adds the custom defense attachment
                XmlCustomDefenses.AddDefense(target, XmlCustomDefenses.SpecialDefenses.StamDrain);

                from.SendMessage("The target has gained the special defense Stamina Drain");
                return(true);
            }

            return(false);
        }