Allow damage shields to benefit from damage done bonuses.

This allows Flame Wrath to scale with spell power.

https://www.youtube.com/watch?v=xhm2L0-ADdc
This commit is contained in:
ratkosrb
2021-02-03 07:22:09 +02:00
parent 7795e4a534
commit c82d2f41dc
2 changed files with 9 additions and 13 deletions
+6
View File
@@ -4684,6 +4684,12 @@ int32 WorldObject::SpellBonusWithCoeffs(SpellEntry const* spellProto, SpellEffec
// Calculate level penalty
float LvlPenalty = CalculateLevelPenalty(spellProto);
// Flame Wrath (16560) scales at 100% without any penalty, yet spell level is 1.
// Damage shield auras must not be subject to level penalty.
if ((spellProto->Effect[effectIndex] == SPELL_EFFECT_APPLY_AURA) &&
(spellProto->EffectApplyAuraName[effectIndex] == SPELL_AURA_DAMAGE_SHIELD))
LvlPenalty = 1.0f;
// Calculate custom coefficient
coeff = spellProto->CalculateCustomCoefficient(pCaster, damagetype, coeff, spell, donePart);