示例#1
0
 public override void OnDefend(DamageAction action)
 {
     if (m_spellEffect.Spell.SchoolMask.HasAnyFlag(action.UsedSchool))
     {
         action.ModDamagePercent(EffectValue);
     }
 }
        public override void OnHit(DamageAction action)
        {
            // "Effects which increase Bleed damage also increase Maul damage."
            var bleedBonusPct = action.Attacker.Auras.GetBleedBonusPercent();

            action.ModDamagePercent(bleedBonusPct);
        }
示例#3
0
 public override void OnAttack(DamageAction action)
 {
     // "spells and abilities deal $s1% more damage to targets infected with Frost Fever"
     if (action.SpellEffect != null && action.Victim.Auras.Contains(SpellId.EffectFrostFever))
     {
         action.ModDamagePercent(EffectValue);
     }
 }
 public override void OnAttack(DamageAction action)
 {
     // "Your spells and abilities deal 4% more damage to targets infected with Blood Plague."
     if (action.SpellEffect != null && action.Victim.Auras.Contains(SpellId.EffectBloodPlague))
     {
         action.ModDamagePercent(EffectValue);
     }
 }
示例#5
0
            public override void OnDefend(DamageAction action)
            {
                var spell = action.Spell;

                if (spell != null && spell.DispelType == DispelType.Disease)
                {
                    action.ModDamagePercent(EffectValue);
                }
            }