Restore works many spells, broken after client switch.
--HG-- branch : trunk
This commit is contained in:
@@ -407,7 +407,7 @@ int32 AuraEffect::CalculateAmount(Unit * caster)
|
|||||||
int32 amount;
|
int32 amount;
|
||||||
// default amount calculation
|
// default amount calculation
|
||||||
if (caster)
|
if (caster)
|
||||||
amount = caster->CalculateSpellDamage(NULL, m_spellProto, m_effIndex);
|
amount = caster->CalculateSpellDamage(NULL, m_spellProto, m_effIndex, &m_baseAmount);
|
||||||
else
|
else
|
||||||
amount = m_baseAmount + 1;
|
amount = m_baseAmount + 1;
|
||||||
|
|
||||||
@@ -1044,7 +1044,7 @@ void AuraEffect::UpdatePeriodic(Unit * caster)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if (target->ToPlayer()->isMoving())
|
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
|
else
|
||||||
--m_amount;
|
--m_amount;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user