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); }
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); } }
public override void OnDefend(DamageAction action) { var spell = action.Spell; if (spell != null && spell.DispelType == DispelType.Disease) { action.ModDamagePercent(EffectValue); } }