Merge pull request #5763 from w1sht0l1v3/master

Core/Unit: Disable spline movement on death. 

Fixe respawning after ForceDespawn is called.

Closes #4518
This commit is contained in:
Machiavelli
2012-03-17 09:33:29 -07:00

View File

@@ -12726,6 +12726,7 @@ void Unit::setDeathState(DeathState s)
GetMotionMaster()->Clear(false);
GetMotionMaster()->MoveIdle();
StopMoving();
DisableSpline();
// without this when removing IncreaseMaxHealth aura player may stuck with 1 hp
// do not why since in IncreaseMaxHealth currenthealth is checked
SetHealth(0);