From a2a4d05c788261444676147dc0012fac164f6841 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 30 Dec 2008 23:04:39 -0600 Subject: [PATCH] *Fix the bug that areaaura loses one point value. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 36e62831f6..1ecbb1fe08 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -645,11 +645,15 @@ void AreaAura::Update(uint32 diff) if(SpellEntry const *actualSpellInfo = spellmgr.SelectAuraRankForPlayerLevel(GetSpellProto(), (*tIter)->getLevel())) { - int32 actualBasePoints = m_currentBasePoints; + //int32 actualBasePoints = m_currentBasePoints; // recalculate basepoints for lower rank (all AreaAura spell not use custom basepoints?) - if(actualSpellInfo != GetSpellProto()) - actualBasePoints = actualSpellInfo->EffectBasePoints[m_effIndex]; - AreaAura *aur = new AreaAura(actualSpellInfo, m_effIndex, &actualBasePoints, (*tIter), caster, NULL); + //if(actualSpellInfo != GetSpellProto()) + // actualBasePoints = actualSpellInfo->EffectBasePoints[m_effIndex]; + AreaAura *aur; + if(actualSpellInfo == GetSpellProto()) + aur = new AreaAura(actualSpellInfo, m_effIndex, &damage, (*tIter), caster, NULL); + else + aur = new AreaAura(actualSpellInfo, m_effIndex, NULL, (*tIter), caster, NULL); (*tIter)->AddAura(aur); } }