コード例 #1
0
ファイル: LadyMelisande.cs プロジェクト: KairiL/runuo
        public override void OnGotMeleeAttack(Mobile attacker)
        {
            base.OnGotMeleeAttack(attacker);

            if (!m_SpawnedSatyrs)
            {
                SpawnSatyrs();
                m_SpawnedSatyrs = true;
            }

            List <string> EffectList = new List <string>();

            EffectList.Add("CastSpeed");
            EffectList.Add("AttackChance");
            EffectList.Add("DefendChance");
            EffectList.Add("WeaponSpeed");
            if (Utility.RandomDouble() < .15)
            {
                SpellHelper.AddAosBuff(this, attacker, EffectList,
                                       TimeSpan.FromSeconds(30), 3, false,
                                       false, true, -60);
                string args = String.Format("{0}\t{1}", 60, 5);
                BuffInfo.AddBuff(attacker, new BuffInfo(BuffIcon.AuraOfNausea, 1153424, 1075803, TimeSpan.FromSeconds(30), attacker, args.ToString()));
            }
        }
コード例 #2
0
        public override void OnGotMeleeAttack(Mobile attacker)
        {
            base.OnGotMeleeAttack(attacker);

            if (0.1 >= Utility.RandomDouble())
            {
                DrainLife();
            }

            List <string> EffectList = new List <string>();

            EffectList.Add("CastSpeed");
            EffectList.Add("CastRecovery");
            EffectList.Add("WeaponSpeed");
            if (Utility.RandomDouble() < .15)
            {
                SpellHelper.AddAosBuff(this, attacker, EffectList,
                                       TimeSpan.FromSeconds(30), -1, false,
                                       false, true, -60);
                this.CacophonicAttack(attacker);
            }
        }
コード例 #3
0
        public override void OnGaveMeleeAttack(Mobile defender)
        {
            base.OnGaveMeleeAttack(defender);

            if (!m_SpawnedSatyrs)
            {
                SpawnSatyrs();
                m_SpawnedSatyrs = true;
            }
            List <string> EffectList = new List <string>();

            EffectList.Add("CastSpeed");
            EffectList.Add("AttackChance");
            EffectList.Add("DefendChance");
            EffectList.Add("WeaponSpeed");
            if (Utility.RandomDouble() < .15)
            {
                SpellHelper.AddAosBuff(this, defender, EffectList,
                                       TimeSpan.FromSeconds(30), 3, false,
                                       false, true, -60);
            }
        }
コード例 #4
0
        public override void OnGotMeleeAttack(Mobile attacker)
        {
            base.OnGotMeleeAttack(attacker);

            if (0.1 >= Utility.RandomDouble())
            {
                DrainLife();
            }

            List <string> EffectList = new List <string>();

            EffectList.Add("CastSpeed");
            EffectList.Add("CastRecovery");
            EffectList.Add("WeaponSpeed");
            if (Utility.RandomDouble() < .15)
            {
                SpellHelper.AddAosBuff(this, attacker, EffectList,
                                       TimeSpan.FromSeconds(30), -1, false,
                                       false, true, -60);
                this.CacophonicAttack(attacker);
                string args = String.Format("{0}\t{1}\t{2}", 60, 5, 5);
                BuffInfo.AddBuff(attacker, new BuffInfo(BuffIcon.HowlOfCacophony, 1153793, 1153820, TimeSpan.FromSeconds(30), attacker, args.ToString()));
            }
        }