mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
fix(Core/Movement): Add safeguards against root freezes (#23117)
This commit is contained in:
@@ -575,6 +575,12 @@ bool WorldSession::VerifyMovementInfo(MovementInfo const& movementInfo, Player*
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// rooted mover sent packet without root or moving AND root - ignore, due to client crash possibility
|
||||
if (opcode != CMSG_FORCE_MOVE_UNROOT_ACK)
|
||||
if (mover->IsRooted() && (!movementInfo.HasMovementFlag(MOVEMENTFLAG_ROOT) || movementInfo.HasMovementFlag(MOVEMENTFLAG_MASK_MOVING)))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user