*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
This commit is contained in:
click
2010-04-23 21:24:32 +02:00
parent c972765e0a
commit f93443b41c

View File

@@ -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))