Restore work priest 47580 and ranks after client switch
Signed-off-by: DiSlord <[email protected]> --HG-- branch : trunk
This commit is contained in:
@@ -5128,14 +5128,15 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
|||||||
if (!unitTarget)
|
if (!unitTarget)
|
||||||
return;
|
return;
|
||||||
// Refresh Shadow Word: Pain on target
|
// Refresh Shadow Word: Pain on target
|
||||||
Unit::AuraList const &mPeriodic = unitTarget->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
|
Unit::AuraMap& auras = unitTarget->GetAuras();
|
||||||
for(Unit::AuraList::const_iterator i = mPeriodic.begin(); i != mPeriodic.end(); ++i)
|
for(Unit::AuraMap::iterator itr = auras.begin(); itr != auras.end(); ++itr)
|
||||||
{
|
{
|
||||||
if( (*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_PRIEST &&
|
SpellEntry const *spellInfo = (*itr).second->GetSpellProto();
|
||||||
(*i)->GetSpellProto()->SpellFamilyFlags & 0x0000000000008000LL &&
|
if( spellInfo->SpellFamilyName == SPELLFAMILY_PRIEST &&
|
||||||
(*i)->GetCasterGUID()==m_caster->GetGUID() )
|
spellInfo->SpellFamilyFlags & 0x0000000000008000LL &&
|
||||||
|
(*itr).second->GetCasterGUID() == m_caster->GetGUID())
|
||||||
{
|
{
|
||||||
(*i)->RefreshAura();
|
(*itr).second->RefreshAura();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user