From f93443b41c85edf2e03303c9440d8a60c8d3e04d Mon Sep 17 00:00:00 2001 From: click Date: Fri, 23 Apr 2010 21:24:32 +0200 Subject: *Fixes conflagrate DOT damage so that warlocks finally can be the pyromaniacs they want to be Closes issue #942 Fix by Liberate --HG-- branch : trunk --- src/game/SpellEffects.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index cbdb666cd90..41dff1eb5c0 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -500,7 +500,12 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) { uint32 pdamage = aura->GetAmount() > 0 ? aura->GetAmount() : 0; pdamage = m_caster->SpellDamageBonus(unitTarget, aura->GetSpellProto(), pdamage, DOT, aura->GetBase()->GetStackAmount()); - damage += pdamage * aura->GetTotalTicks() * 60 / 100; + uint32 pct_dir = m_caster->CalculateSpellDamage(unitTarget, m_spellInfo, (effect_idx + 1)); + damage += pdamage * aura->GetTotalTicks() * pct_dir / 100; + + uint32 pct_dot = m_caster->CalculateSpellDamage(unitTarget, m_spellInfo, (effect_idx + 2)) / 3; + m_currentBasePoints[1] = pdamage * aura->GetTotalTicks() * pct_dot / 100; + apply_direct_bonus = false; // Glyph of Conflagrate if (!m_caster->HasAura(56235)) -- cgit v1.2.3