mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
fix(Core/Pathfinding): Creatures regen health, spells LOD (#4509)
This commit is contained in:
@@ -553,7 +553,7 @@ void Unit::UpdateSplinePosition()
|
||||
|
||||
void Unit::DisableSpline()
|
||||
{
|
||||
m_movementInfo.RemoveMovementFlag(MovementFlags(MOVEMENTFLAG_SPLINE_ENABLED | MOVEMENTFLAG_FORWARD));
|
||||
m_movementInfo.RemoveMovementFlag(MovementFlags(MOVEMENTFLAG_SPLINE_ENABLED | MOVEMENTFLAG_FORWARD | MOVEMENTFLAG_BACKWARD));
|
||||
movespline->_Interrupt();
|
||||
}
|
||||
|
||||
@@ -13685,6 +13685,7 @@ void Unit::setDeathState(DeathState s, bool despawn)
|
||||
// remove aurastates allowing special moves
|
||||
ClearAllReactives();
|
||||
ClearDiminishings();
|
||||
|
||||
GetMotionMaster()->Clear(false);
|
||||
GetMotionMaster()->MoveIdle();
|
||||
|
||||
@@ -15894,6 +15895,10 @@ void Unit::StopMoving()
|
||||
if (movespline->Finalized())
|
||||
return;
|
||||
|
||||
// Update position now since Stop does not start a new movement that can be updated later
|
||||
if (movespline->HasStarted())
|
||||
UpdateSplinePosition();
|
||||
|
||||
Movement::MoveSplineInit init(this);
|
||||
init.Stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user