Restore works many spells, broken after client switch.

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2010-04-13 16:24:17 +04:00
parent c359e64371
commit e8181f1dc9
+2 -2
View File
@@ -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;