aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-04-11 11:43:23 +0400
committern0n4m3 <none@none>2010-04-11 11:43:23 +0400
commita3be43a297443062d83cfbe4307f96bcdc53e619 (patch)
tree0382bcf58f36acdde4ba85677f962e4942022fa0 /src/game/Spell.cpp
parent5d0c5c244811625224d779b799e2e2a24f35b819 (diff)
Final fix basepoints calculation, thx to Vladimir, Laise.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index c71402d41d2..680cdac0f36 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2959,8 +2959,8 @@ void Spell::cast(bool skipCheck)
uint32 auraSpellIdx = (*i)->GetEffIndex();
if (SpellEntry const *spellInfo = sSpellStore.LookupEntry(auraSpellInfo->EffectTriggerSpell[auraSpellIdx]))
{
- // Calculate chance at that moment (can be depend for example from combo points)
- int32 chance = m_caster->CalculateSpellDamage(auraSpellInfo, auraSpellIdx, (*i)->GetBaseAmount(), NULL);
+ int32 auraBaseAmount = (*i)->GetBaseAmount();
+ int32 chance = m_caster->CalculateSpellDamage(NULL, auraSpellInfo, auraSpellIdx, &auraBaseAmount);
m_ChanceTriggerSpells.push_back(std::make_pair(spellInfo, chance * (*i)->GetBase()->GetStackAmount()));
}
}