diff options
| author | megamage <none@none> | 2008-12-31 10:03:07 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-12-31 10:03:07 -0600 |
| commit | ba58ddac9c302953fc15987bc84d5f858a011e56 (patch) | |
| tree | 5bafa1aa17b64d7e325a347f4538eb8402b222a3 /src/game/SpellAuras.cpp | |
| parent | aa3b89d7764c093ba87ee2cf99775e3aedc37637 (diff) | |
| parent | 3885ce94d9be86616bb01e660a70087fcbfc6ffd (diff) | |
*Update to HG 730.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -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 fb4ea35f1fc..91b85df1a39 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -672,11 +672,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, &m_modifier.m_amount, (*tIter), caster, NULL); + else + aur = new AreaAura(actualSpellInfo, m_effIndex, NULL, (*tIter), caster, NULL); (*tIter)->AddAura(aur); } } |
