Skip to content

Commit

Permalink
[11120] Remove all auras at creature respawn.
Browse files Browse the repository at this point in the history
This will remove death persistent auras and AI does no longer need to remove any such auras at respawn manually (GM will still see the death persistent aura all until creature respawn).

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Feb 8, 2011
1 parent a439c42 commit 9d0bdaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/game/Creature.cpp
Expand Up @@ -454,6 +454,9 @@ void Creature::Update(uint32 update_diff, uint32 diff)
lootForBody = false;
lootForSkin = false;

// Clear possible auras having IsDeathPersistent() attribute
RemoveAllAuras();

if(m_originalEntry != GetEntry())
{
// need preserver gameevent state
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11119"
#define REVISION_NR "11120"
#endif // __REVISION_NR_H__

0 comments on commit 9d0bdaf

Please sign in to comment.