diff --git a/src/game/Objects/Object.cpp b/src/game/Objects/Object.cpp index 770152a00..a4be9d75c 100644 --- a/src/game/Objects/Object.cpp +++ b/src/game/Objects/Object.cpp @@ -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); diff --git a/src/game/Objects/Unit.cpp b/src/game/Objects/Unit.cpp index b21a42183..6b6bbe8c6 100644 --- a/src/game/Objects/Unit.cpp +++ b/src/game/Objects/Unit.cpp @@ -1706,19 +1706,9 @@ void Unit::DealMeleeDamage(CalcDamageInfo* damageInfo, bool durabilityLoss) uint32 damage = (*i)->GetModifier()->m_amount; - // Apply damage percentage modifiers (#1601) - float DoneTotalMod = 1.0f; - AuraList const& mModDamagePercentDone = pVictim->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_DONE); - for (const auto& j : mModDamagePercentDone) - { - if ((j->GetModifier()->m_miscvalue & pSpellProto->GetSpellSchoolMask()) && - j->GetSpellProto()->EquippedItemClass == -1 && - j->GetSpellProto()->EquippedItemInventoryTypeMask == 0) - { - DoneTotalMod *= (j->GetModifier()->m_amount + 100.0f) / 100.0f; - } - } - damage *= DoneTotalMod; + // Damage shield effects do benefit from damage done bonuses, including spell power if bonus coefficient is set. + // For example Flame Wrath has a coefficient of 1, making it scale with 100% of spell power. + damage = pVictim->SpellDamageBonusDone(this, pSpellProto, (*i)->GetEffIndex(), damage, SPELL_DIRECT_DAMAGE, (*i)->GetStackAmount()); // apply SpellBaseDamageBonusTaken for mobs only // for example, Death Talon Seethers with Aura of Flames reflect 1200 damage to tanks with Mark of Flame