[8017] Always reset creature EventAI phase at creature death.

This commit is contained in:
VladimirMangos 2009-06-15 01:26:40 +04:00
parent 5254a498df
commit 3c9f9e3fa3
2 changed files with 4 additions and 1 deletions

View file

@ -849,6 +849,9 @@ void CreatureEventAI::JustDied(Unit* killer)
if ((*i).Event.event_type == EVENT_T_DEATH) if ((*i).Event.event_type == EVENT_T_DEATH)
ProcessEvent(*i, killer); ProcessEvent(*i, killer);
} }
// reset phase after any death state events
Phase = 0;
} }
void CreatureEventAI::KilledUnit(Unit* victim) void CreatureEventAI::KilledUnit(Unit* victim)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8016" #define REVISION_NR "8017"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__