aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-04-13 16:24:17 +0400
committern0n4m3 <none@none>2010-04-13 16:24:17 +0400
commite8181f1dc98ca3343bf5143c3c3ad57546cfda70 (patch)
tree6c5116fcd01e7c447d92d3766c8e00bc03f3df01 /src
parentc359e643711fc3e6736d7fbf7f81ea58944e57ee (diff)
Restore works many spells, broken after client switch.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuraEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp
index 2e46f4866a9..fa62761b31a 100644
--- a/src/game/SpellAuraEffects.cpp
+++ b/src/game/SpellAuraEffects.cpp
@@ -407,7 +407,7 @@ int32 AuraEffect::CalculateAmount(Unit * caster)
int32 amount;
// default amount calculation
if (caster)
- amount = caster->CalculateSpellDamage(NULL, m_spellProto, m_effIndex);
+ amount = caster->CalculateSpellDamage(NULL, m_spellProto, m_effIndex, &m_baseAmount);
else
amount = m_baseAmount + 1;
@@ -1044,7 +1044,7 @@ void AuraEffect::UpdatePeriodic(Unit * caster)
break;
if (target->ToPlayer()->isMoving())
- m_amount = target->CalculateSpellDamage(target, m_spellProto,m_effIndex);
+ m_amount = target->CalculateSpellDamage(target, m_spellProto,m_effIndex, &m_baseAmount);
else
--m_amount;
break;