Core/Spells: correctly calculate Replenishment aura. x * 20 / 10000 != x * .2
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user