Skip to content

Commit

Permalink
[10995] Not do redundent unlock aura holder at each proccessed spell …
Browse files Browse the repository at this point in the history
…proc handler.

Aura holder unlock called later by code.
This prevent unexpected real aura delete at early effect aura proccessing
and crash at next effect aura proccessing.
  • Loading branch information
VladimirMangos committed Jan 10, 2011
1 parent f43c272 commit 8e3ef13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9828,8 +9828,8 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
}

anyAuraProc = true;
triggeredByAura->SetInUse(false);
}

// Remove charge (aura can be removed by triggers)
if(useCharges && procSuccess && anyAuraProc && !triggeredByHolder->IsDeleted())
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10994"
#define REVISION_NR "10995"
#endif // __REVISION_NR_H__

0 comments on commit 8e3ef13

Please sign in to comment.