AddStatBonus() 공개 정적인 메소드

public static AddStatBonus ( Mobile caster, Mobile target, StatType type ) : bool
caster Mobile
target Mobile
type StatType
리턴 bool
예제 #1
0
        public static void ToogleBless(Spell spell, Mobile Caster, Mobile m)
        {
            SpellHelper.Turn(Caster, m);

            SpellHelper.AddStatBonus(Caster, m, StatType.Str, TimeSpan.FromSeconds(0)); SpellHelper.DisableSkillCheck = true;
            SpellHelper.AddStatBonus(Caster, m, StatType.Dex, TimeSpan.FromSeconds(0));
            SpellHelper.AddStatBonus(Caster, m, StatType.Int, TimeSpan.FromSeconds(0)); SpellHelper.DisableSkillCheck = false;

            Effects.SendTargetParticles(m, 0x373A, 10, 15, 5018, EffectLayer.Waist);
            m.PlaySound(0x1EA);
        }
예제 #2
0
파일: Force.cs 프로젝트: Zilmerx/Temrael2
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237);                   // Target can not be seen.
            }
            else if (CheckBSequence(m))
            {
                SpellHelper.Turn(Caster, m);

                SpellHelper.AddStatBonus(Caster, m, StatType.Str, TimeSpan.FromSeconds(0));

                Effects.SendTargetParticles(m, 0x375A, 10, 15, 5017, EffectLayer.Waist);
                m.PlaySound(0x1EE);
            }

            FinishSequence();
        }
예제 #3
0
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (CheckBSequence(m))
            {
                SpellHelper.Turn(Caster, m);

                SpellHelper.AddStatBonus(Caster, m, StatType.Str); SpellHelper.DisableSkillCheck = true;
                SpellHelper.AddStatBonus(Caster, m, StatType.Dex);
                SpellHelper.AddStatBonus(Caster, m, StatType.Int); SpellHelper.DisableSkillCheck = false;

                Effects.SendTargetParticles(m, 0x373A, 10, 15, 5018, EffectLayer.Waist);
                m.PlaySound(0x1EA);
            }

            FinishSequence();
        }
예제 #4
0
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237);                   // Target can not be seen.
            }
            else if (CheckBSequence(m))
            {
                SpellHelper.Turn(Caster, m);

                int      bonus    = (int)(bonusMax * GetSpellScaling(Caster, Info.skillForCasting));
                TimeSpan duration = TimeSpan.FromSeconds(durationMax * GetSpellScaling(Caster, Info.skillForCasting));

                SpellHelper.AddStatBonus(Caster, m, StatType.Dex, bonus, duration); SpellHelper.DisableSkillCheck = true;

                Effects.SendTargetParticles(m, 0x375A, 10, 15, 5010, EffectLayer.Waist);
                m.PlaySound(0x28E);
            }

            FinishSequence();
        }