mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
fix(Core/Player): correct add guid for packet SMSG_CLIENT_CONTROL_UPDATE (#5540)
This commit is contained in:
@@ -24857,7 +24857,7 @@ void Player::ResurectUsingRequestData()
|
||||
void Player::SetClientControl(Unit* target, bool allowMove, bool packetOnly /*= false*/)
|
||||
{
|
||||
WorldPacket data(SMSG_CLIENT_CONTROL_UPDATE, target->GetPackGUID().size() + 1);
|
||||
data.append(target->GetPackGUID());
|
||||
data << target->GetPackGUID();
|
||||
data << uint8((allowMove && !target->HasUnitState(UNIT_STATE_FLEEING | UNIT_STATE_CONFUSED)) ? 1 : 0);
|
||||
GetSession()->SendPacket(&data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user