Core/Spells: correctly calculate Replenishment aura. x * 20 / 10000 != x * .2

This commit is contained in:
Kandera
2012-05-24 15:33:08 -04:00
parent d54d536f6f
commit 2849f21d20
@@ -662,10 +662,10 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
case SPELL_AURA_PERIODIC_ENERGIZE:
if (GetSpellInfo()->SpellFamilyName == SPELLFAMILY_GENERIC)
{
// Replenishment (0.25% from max)
// Replenishment (0.2% from max)
// Infinite Replenishment
if (m_spellInfo->SpellIconID == 3184 && m_spellInfo->SpellVisual[0] == 12495)
amount = GetBase()->GetUnitOwner()->GetMaxPower(POWER_MANA) * 25 / 10000;
amount = GetBase()->GetUnitOwner()->GetMaxPower(POWER_MANA) * 0.2f;
}
// Innervate
else if (m_spellInfo->Id == 29166)