[7650] Fix one warlock talent part (47201 and ranks).

Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
Lightguard 2009-04-11 23:43:28 +04:00 committed by DiSlord
parent c4b2e3f67c
commit 8a21bdbae7
2 changed files with 16 additions and 1 deletions

View file

@ -4986,6 +4986,21 @@ void Spell::EffectScriptEffect(uint32 effIndex)
DoCreateItem( effIndex, itemtype ); DoCreateItem( effIndex, itemtype );
return; return;
} }
// Everlasting Affliction
case 47422:
{
// Need refresh caster corruption auras on target
Unit::AuraMap& suAuras = unitTarget->GetAuras();
for(Unit::AuraMap::iterator itr = suAuras.begin(); itr != suAuras.end(); ++itr)
{
SpellEntry const *spellInfo = (*itr).second->GetSpellProto();
if(spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK &&
spellInfo->SpellFamilyFlags & 0x0000000000000002LL &&
(*itr).second->GetCasterGUID()==m_caster->GetGUID())
(*itr).second->RefreshAura();
}
return;
}
} }
break; break;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7649" #define REVISION_NR "7650"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__