mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix (Core/Vehicle): Fix vehicle unrooting on dismiss controlled vehicle (#23802)
This commit is contained in:
@@ -50,7 +50,10 @@ void WorldSession::HandleDismissControlledVehicle(WorldPacket& recvData)
|
|||||||
mi.guid = guid;
|
mi.guid = guid;
|
||||||
ReadMovementInfo(recvData, &mi);
|
ReadMovementInfo(recvData, &mi);
|
||||||
|
|
||||||
_player->m_mover->m_movementInfo = mi;
|
if (_player->m_mover->IsRooted()) // for some reason client sends it without it even if rooted
|
||||||
|
mi.AddMovementFlag(MOVEMENTFLAG_ROOT);
|
||||||
|
|
||||||
|
ProcessMovementInfo(mi, _player->m_mover, _player->m_mover->ToPlayer(), recvData);
|
||||||
|
|
||||||
_player->ExitVehicle();
|
_player->ExitVehicle();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user