mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[8017] Always reset creature EventAI phase at creature death.
This commit is contained in:
parent
5254a498df
commit
3c9f9e3fa3
2 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue