mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Movement): Unroot should remove MOVEMENTFLAG_FALLING if not really falling (#9428)
- Closes #9187
This commit is contained in:
@@ -997,6 +997,11 @@ void WorldSession::HandleMoveUnRootAck(WorldPacket& recvData)
|
|||||||
movementInfo.time = (uint32)movementTime;
|
movementInfo.time = (uint32)movementTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G3D::fuzzyEq(movementInfo.fallTime, 0.f))
|
||||||
|
{
|
||||||
|
movementInfo.RemoveMovementFlag(MOVEMENTFLAG_FALLING);
|
||||||
|
}
|
||||||
|
|
||||||
movementInfo.guid = mover->GetGUID();
|
movementInfo.guid = mover->GetGUID();
|
||||||
mover->m_movementInfo = movementInfo;
|
mover->m_movementInfo = movementInfo;
|
||||||
mover->UpdatePosition(movementInfo.pos);
|
mover->UpdatePosition(movementInfo.pos);
|
||||||
|
|||||||
Reference in New Issue
Block a user