Core/Auras: backout r2bf34fd7ac and add alternative - not spell specific sollution for the problem.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-12-05 20:43:09 +01:00
1 parent 6fe19b5a86
commit 7db1b39224
4 files changed
+11 -13

No files matched your search

-13
View File
@@ -2745,19 +2745,6 @@ 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;
}
}