Core/Movement: Do not send mover information when locking client control.
Fixes movement control when a battleground ends.
This commit is contained in:
1 parent
904fa5b47b
commit
65f358f985
1 file changed
+1
-1
@@ -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