mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +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;
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user