diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuras.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 36e62831f61..1ecbb1fe086 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); } } |