diff options
| author | QAston <none@none> | 2009-04-08 00:55:43 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-04-08 00:55:43 +0200 |
| commit | 9b908e4014de8d4ef428c74f94c480405160cfa7 (patch) | |
| tree | 073d50ae24bdf492b4f73fafab829af9e8c58e73 /src | |
| parent | 01b0fc45cb8cd06b989f0998960843a5b9e8049d (diff) | |
*Make amount of auras be more correct.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellAuras.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index f2721efb485..89d5a5578d5 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -462,7 +462,7 @@ m_target(parentAura->GetTarget()) m_effIndex = effIndex; m_auraName = AuraType(m_spellProto->EffectApplyAuraName[m_effIndex]); - if(currentBasePoints) + /*if(currentBasePoints) { m_amount = *currentBasePoints; m_currentBasePoints = m_amount - 1; @@ -474,7 +474,16 @@ m_target(parentAura->GetTarget()) m_amount = caster->CalculateSpellDamage(m_spellProto, m_effIndex, m_currentBasePoints, m_target); else m_amount = m_currentBasePoints + 1; - } + }*/ + if(currentBasePoints) + m_currentBasePoints = *currentBasePoints; + else + m_currentBasePoints = m_spellProto->EffectBasePoints[m_effIndex]; + + if(caster) + m_amount = caster->CalculateSpellDamage(m_spellProto, m_effIndex, m_currentBasePoints, m_target); + else + m_amount = m_currentBasePoints + 1; if (!m_amount && castItem && castItem->GetItemSuffixFactor()) { |
