*Innervate calculation formula update.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-18 15:54:38 +02:00
parent 8499812eb6
commit 9126cd99d2
+6 -1
View File
@@ -4594,15 +4594,20 @@ void AuraEffect::HandlePeriodicTriggerSpellWithValue(bool apply, bool Real, bool
void AuraEffect::HandlePeriodicEnergize(bool apply, bool Real, bool changeAmount)
{
if(!Real && !changeAmount)
if(!Real)
return;
m_isPeriodic = apply;
if (apply)
{
// Replenishment (0.25% from max)
// Infinite Replenishment
if (m_spellProto->SpellIconID == 3184 && m_spellProto->SpellVisual[0] == 12495)
m_amount = m_target->GetMaxPower(POWER_MANA) * 25 / 10000;
else if (m_spellProto->Id == 29166) // Innervate
m_amount = m_target->GetCreatePowers(POWER_MANA) * m_amount / ((GetParentAura()->GetAuraMaxDuration() / 10.0f) * (m_amplitude / IN_MILISECONDS));
}
}
void AuraEffect::HandleAuraPowerBurn(bool apply, bool Real, bool /*changeAmount*/)