aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Spell.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 1ae359f38fa..e105da7ca4d 100755
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -2745,6 +2745,19 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
unitList.sort(Trinity::PowerPctOrderPred((Powers)power));
unitList.resize(maxSize);
}
+
+ // Replenishment: refresh existing auras
+ if (m_spellInfo->Id == 57669)
+ for (std::list<Unit *>::iterator itr = unitList.begin(); itr != unitList.end();)
+ if (AuraEffect *aurEff = (*itr)->GetAuraEffect(SPELL_AURA_PERIODIC_ENERGIZE, SPELLFAMILY_GENERIC, 3184, EFFECT_0))
+ {
+ aurEff->SetAmount((*itr)->GetMaxPower(POWER_MANA) * 25 / 10000);
+ aurEff->GetBase()->RefreshDuration();
+
+ itr = unitList.erase(itr);
+ }
+ else
+ ++itr;
}
}