mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Movement: Do not send mover information when locking client control.
Fixes movement control when a battleground ends.
This commit is contained in:
@@ -24272,7 +24272,7 @@ void Player::SetClientControl(Unit* target, uint8 allowMove)
|
||||
data.append(target->GetPackGUID());
|
||||
data << uint8(allowMove);
|
||||
GetSession()->SendPacket(&data);
|
||||
if (target == this)
|
||||
if (target == this && allowMove == 1)
|
||||
SetMover(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user