aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKandera <KanderaDev@gmail.com>2012-05-24 15:33:08 -0400
committerKandera <KanderaDev@gmail.com>2012-05-24 15:33:08 -0400
commit2849f21d20d53461813c0a2f66a5401f71adcbc9 (patch)
tree4b1f3a7460b8bcb90dd9731ae7659e49ecce5f22
parentd54d536f6fb996c2fb729c3f2ee5bf7c44945096 (diff)
Core/Spells: correctly calculate Replenishment aura. x * 20 / 10000 != x * .2
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuraEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index d28ba9e1e19..38ad27b0ad2 100755
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -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)