[8602] update movement packet when unit dies

this avoids, that feared creatures walk away after dead
(happens often if a creature dies in fear)
This commit is contained in:
balrok 2009-10-08 18:35:20 +02:00
parent 308439a335
commit 5a48fe3c96
2 changed files with 4 additions and 1 deletions

View file

@ -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