mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
[11732] Interrupt movement state at dying
TODO: proper solution would be update creatures while in corpse state. This also would solve problems with death persistent auras that not get updated for died creatures
This commit is contained in:
parent
0cbb8e311e
commit
a7fba67225
3 changed files with 3 additions and 2 deletions
|
|
@ -1542,7 +1542,7 @@ bool Creature::FallGround()
|
||||||
|
|
||||||
// hacky solution: by some reason died creatures not updated, that's why need finalize movement state
|
// hacky solution: by some reason died creatures not updated, that's why need finalize movement state
|
||||||
GetMap()->CreatureRelocation(this, GetPositionX(), GetPositionY(), tz, GetOrientation());
|
GetMap()->CreatureRelocation(this, GetPositionX(), GetPositionY(), tz, GetOrientation());
|
||||||
movespline->_Finalize();
|
DisableSpline();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8362,6 +8362,7 @@ void Unit::SetDeathState(DeathState s)
|
||||||
UnsummonAllTotems();
|
UnsummonAllTotems();
|
||||||
|
|
||||||
StopMoving();
|
StopMoving();
|
||||||
|
DisableSpline();
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11731"
|
#define REVISION_NR "11732"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue