[8404] Prevent triggering from deleted auras.

This possible at recursive spell event triggering case.
This commit is contained in:
VladimirMangos 2009-08-22 07:39:34 +04:00
parent 6ced2e979d
commit 4826a192a0
2 changed files with 5 additions and 1 deletions

View file

@ -11043,6 +11043,10 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
// Fill procTriggered list
for(AuraMap::const_iterator itr = GetAuras().begin(); itr!= GetAuras().end(); ++itr)
{
// skip deleted auras (possible at recursive triggered call
if(itr->second->IsDeleted())
continue;
SpellProcEventEntry const* spellProcEvent = NULL;
if(!IsTriggeredAtSpellProcEvent(pTarget, itr->second, procSpell, procFlag, procExtra, attType, isVictim, (damage > 0), spellProcEvent))
continue;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8403"
#define REVISION_NR "8404"
#endif // __REVISION_NR_H__