[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 <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-02-08 21:20:33 +01:00
parent 8354de4927
commit e3387ec6b0
2 changed files with 4 additions and 1 deletions

View file

@ -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