Core/Movement: Do not send mover information when locking client control.

Fixes movement control when a battleground ends.
This commit is contained in:
Warpten
2013-10-13 12:36:12 +02:00
parent 904fa5b47b
commit 65f358f985

View File

@@ -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);
}