mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[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:
parent
308439a335
commit
5a48fe3c96
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue