mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
fix(Core/Unit): Fix root/stun client freeze (#23521)
This commit is contained in:
@@ -16709,6 +16709,13 @@ void Unit::StopMovingOnCurrentPos()
|
||||
|
||||
void Unit::SendMovementFlagUpdate(bool self /* = false */)
|
||||
{
|
||||
if (IsRooted())
|
||||
{
|
||||
// each case where this occurs has to be examined and reported and dealt with.
|
||||
LOG_ERROR("Unit", "Attempted sending heartbeat with root flag for guid {}", GetGUID().ToString());
|
||||
return;
|
||||
}
|
||||
|
||||
WorldPacket data;
|
||||
BuildHeartBeatMsg(&data);
|
||||
SendMessageToSet(&data, self);
|
||||
|
||||
Reference in New Issue
Block a user