From 5a48fe3c967544a1d04480b2c45a4f465ff08cf1 Mon Sep 17 00:00:00 2001 From: balrok Date: Thu, 8 Oct 2009 18:35:20 +0200 Subject: [PATCH] [8602] update movement packet when unit dies this avoids, that feared creatures walk away after dead (happens often if a creature dies in fear) --- src/game/Unit.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 55cca34bd..0460972f1 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10014,6 +10014,9 @@ void Unit::setDeathState(DeathState s) RemoveGuardians(); UnsummonAllTotems(); + // avoid that corpses run in fear + StopMoving(); + ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false); ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false); // remove aurastates allowing special moves diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 00c978acb..d1ee24f5a 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 "8601" + #define REVISION_NR "8602" #endif // __REVISION_NR_H__