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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user