Core/Unit: Fix respawning after ForceDespawn is called.

This commit is contained in:
w1sht0l1v3
2012-03-17 18:26:22 +02:00
parent e02cda54cd
commit b76c2c144d
+1
View File
@@ -12726,6 +12726,7 @@ void Unit::setDeathState(DeathState s)
GetMotionMaster()->Clear(false); GetMotionMaster()->Clear(false);
GetMotionMaster()->MoveIdle(); GetMotionMaster()->MoveIdle();
StopMoving(); StopMoving();
DisableSpline();
// without this when removing IncreaseMaxHealth aura player may stuck with 1 hp // without this when removing IncreaseMaxHealth aura player may stuck with 1 hp
// do not why since in IncreaseMaxHealth currenthealth is checked // do not why since in IncreaseMaxHealth currenthealth is checked
SetHealth(0); SetHealth(0);