From e3387ec6b0d84ab71bac03c63ce36a7c1084334e Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Tue, 8 Feb 2011 21:20:33 +0100 Subject: [PATCH] [11120] Remove all auras at creature respawn. 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 --- src/game/Creature.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 36cfb109a..515840bed 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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 diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 6886bc81a..8ead35a45 100644 --- a/src/shared/revision_nr.h +++ b/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__