mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +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();
|
RemoveGuardians();
|
||||||
UnsummonAllTotems();
|
UnsummonAllTotems();
|
||||||
|
|
||||||
|
// avoid that corpses run in fear
|
||||||
|
StopMoving();
|
||||||
|
|
||||||
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
|
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
|
||||||
ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false);
|
ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false);
|
||||||
// remove aurastates allowing special moves
|
// remove aurastates allowing special moves
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8601"
|
#define REVISION_NR "8602"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue