From 3c9f9e3fa3a4d93bedea020dd8aec36e455f5c79 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 15 Jun 2009 01:26:40 +0400 Subject: [PATCH] [8017] Always reset creature EventAI phase at creature death. --- src/game/CreatureEventAI.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index 44837ed78..865e19891 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -849,6 +849,9 @@ void CreatureEventAI::JustDied(Unit* killer) if ((*i).Event.event_type == EVENT_T_DEATH) ProcessEvent(*i, killer); } + + // reset phase after any death state events + Phase = 0; } void CreatureEventAI::KilledUnit(Unit* victim) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 3aaa6e28b..e5892f9d2 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 "8016" + #define REVISION_NR "8017" #endif // __REVISION_NR_H__