示例#1
0
        public void LowerResist(Mobile target)
        {
            if (BaseAttackHelperSE.IsUnderEffect(target, BaseAttackHelperSE.m_KazeKemonoRMT))
            {
                return;
            }

            TimeSpan duration = TimeSpan.FromSeconds(121 - (int)(target.Skills[SkillName.MagicResist].Value));

            ResistanceMod[] mod = new ResistanceMod[1] {
                new ResistanceMod(ResistanceType.Physical, -25)
            };

            BaseAttackHelperSE.LowerResistanceAttack(this, ref m_Timer, duration, target, mod, BaseAttackHelperSE.m_KazeKemonoRMT);
        }
示例#2
0
        public override void OnGaveMeleeAttack(Mobile defender)
        {
            base.OnGaveMeleeAttack(defender);

            if (DateTime.Now >= m_NextAbilityTime)
            {
                if (BaseAttackHelperSE.IsUnderEffect(defender, BaseAttackHelperSE.m_RageTable))
                {
                    return;
                }

                BaseAttackHelperSE.RageAttack(this, defender, ref m_Timer);

                m_NextAbilityTime = DateTime.Now + TimeSpan.FromSeconds(Utility.RandomMinMax(MinTime, MaxTime));
            }
        }
示例#3
0
        public void LowerFireResist(Mobile target)
        {
            if (BaseAttackHelperSE.IsUnderEffect(target, BaseAttackHelperSE.m_FanDancerRMT))
            {
                return;
            }

            TimeSpan duration = TimeSpan.FromSeconds(121 - (int)(target.Skills[SkillName.MagicResist].Value));

            ResistanceMod[] mod = new ResistanceMod[1] {
                new ResistanceMod(ResistanceType.Fire, -25)
            };

            target.SendLocalizedMessage(1070833);               // The creature fans you with fire, reducing your resistance to fire attacks.

            BaseAttackHelperSE.LowerResistanceAttack(this, ref m_Timer, duration, target, mod, BaseAttackHelperSE.m_FanDancerRMT);
        }