Core/Auras: one more for good measure. thanks vincent-michael

This commit is contained in:
Kandera
2012-05-24 17:10:12 -04:00
parent b7573a1bc7
commit 51388c4934
@@ -663,12 +663,10 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
switch (m_spellInfo->Id) switch (m_spellInfo->Id)
{ {
case 57669: // Replenishment (0.2% from max) case 57669: // Replenishment (0.2% from max)
if (m_spellInfo->SpellIconID == 3184 && m_spellInfo->SpellVisual[0] == 12495) amount = GetBase()->GetUnitOwner()->GetMaxPower(POWER_MANA) * 0.002f;
amount = GetBase()->GetUnitOwner()->GetMaxPower(POWER_MANA) * 0.002f;
break; break;
case 61782: // Infinite Replenishment case 61782: // Infinite Replenishment
if (m_spellInfo->SpellIconID == 3184 && m_spellInfo->SpellVisual[0] == 12495) amount = GetBase()->GetUnitOwner()->GetMaxPower(POWER_MANA) * 0.0025f;
amount = GetBase()->GetUnitOwner()->GetMaxPower(POWER_MANA) * 0.0025f;
break; break;
case 29166: // Innervate case 29166: // Innervate
ApplyPctF(amount, float(GetBase()->GetUnitOwner()->GetCreatePowers(POWER_MANA)) / GetTotalTicks()); ApplyPctF(amount, float(GetBase()->GetUnitOwner()->GetCreatePowers(POWER_MANA)) / GetTotalTicks());