aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-01 16:12:12 -0600
committermegamage <none@none>2009-02-01 16:12:12 -0600
commit50fa9c5933b582f0f506e52dc78240729cb9cfa0 (patch)
tree80d10bd5a0748e158efbdca3dd61a685c075e7fb /src
parent336e8501f0e8c6cede5356347a8c6894e39197b5 (diff)
Restore work priest 47580 and ranks after client switch
Signed-off-by: DiSlord <dislord@nomail.com> --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 25a2736dfa6..e51c2733be9 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5128,14 +5128,15 @@ void Spell::EffectScriptEffect(uint32 effIndex)
if (!unitTarget)
return;
// Refresh Shadow Word: Pain on target
- Unit::AuraList const &mPeriodic = unitTarget->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
- for(Unit::AuraList::const_iterator i = mPeriodic.begin(); i != mPeriodic.end(); ++i)
+ Unit::AuraMap& auras = unitTarget->GetAuras();
+ for(Unit::AuraMap::iterator itr = auras.begin(); itr != auras.end(); ++itr)
{
- if( (*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_PRIEST &&
- (*i)->GetSpellProto()->SpellFamilyFlags & 0x0000000000008000LL &&
- (*i)->GetCasterGUID()==m_caster->GetGUID() )
+ SpellEntry const *spellInfo = (*itr).second->GetSpellProto();
+ if( spellInfo->SpellFamilyName == SPELLFAMILY_PRIEST &&
+ spellInfo->SpellFamilyFlags & 0x0000000000008000LL &&
+ (*itr).second->GetCasterGUID() == m_caster->GetGUID())
{
- (*i)->RefreshAura();
+ (*itr).second->RefreshAura();
return;
}
}