From ff229af00a239371c8b2b24dc4153f8a344f32ba Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sat, 19 Dec 2009 20:59:15 +0300 Subject: [PATCH] [9027] Restore spell bonus apply to dot damage for 17962 damage calculation. In fact reverting wrong part of my one from prev. commits. --- src/game/SpellEffects.cpp | 3 ++- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index e61ba6462..dff8f47af 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -475,7 +475,8 @@ void Spell::EffectSchoolDMG(uint32 effect_idx) // found Immolate or Shadowflame if (aura) { - int32 damagetick = aura->GetModifier()->m_amount; + // DoT not have applied spell bonuses in m_amount + int32 damagetick = m_caster->SpellDamageBonus(unitTarget, aura->GetSpellProto(), aura->GetModifier()->m_amount, DOT); damage += damagetick * 4; // Glyph of Conflagrate diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index d5a4c8ce7..5194dfe3c 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9026" + #define REVISION_NR "9027" #endif // __REVISION_NR_H__