mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[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:
parent
8354de4927
commit
e3387ec6b0
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue