mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Restore work priest 47580 and ranks after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
9d83c18591
commit
90f09e001a
1 changed files with 7 additions and 6 deletions
|
|
@ -4928,14 +4928,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue