Core/Spells: corrected Calculation for Replenishment and Infinite Replenishment will now also regenerate 1% of the maximum mana

This commit is contained in:
Ovahlord committed 2018-07-14 14:01:57 +02:00
1 parent 5b4fe0a13d
commit f33a2038be
1 file changed
+1 -4
+1 -4
View File
@@ -2855,11 +2855,8 @@ class spell_gen_replenishment : public SpellScriptLoader
switch (GetSpellInfo()->Id)
{
case SPELL_REPLENISHMENT:
amount = GetUnitOwner()->GetMaxPower(POWER_MANA) * 0.001f;
break;
case SPELL_INFINITE_REPLENISHMENT:
amount = GetUnitOwner()->GetMaxPower(POWER_MANA) * 0.0025f;
break;
amount = CalculatePct(GetUnitOwner()->GetMaxPower(POWER_MANA), 1);
default:
break;
}