mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 00:08:01 +00:00
refactor(Core): SendDirectMessage (#23230)
This commit is contained in:
@@ -1401,7 +1401,7 @@ void Player::UpdateHomebindTime(uint32 time)
|
||||
WorldPacket data(SMSG_RAID_GROUP_ONLY, 4 + 4);
|
||||
data << uint32(0);
|
||||
data << uint32(0);
|
||||
GetSession()->SendPacket(&data);
|
||||
SendDirectMessage(&data);
|
||||
}
|
||||
// instance is valid, reset homebind timer
|
||||
m_HomebindTimer = 0;
|
||||
@@ -1424,7 +1424,7 @@ void Player::UpdateHomebindTime(uint32 time)
|
||||
WorldPacket data(SMSG_RAID_GROUP_ONLY, 4 + 4);
|
||||
data << uint32(m_HomebindTimer);
|
||||
data << uint32(1);
|
||||
GetSession()->SendPacket(&data);
|
||||
SendDirectMessage(&data);
|
||||
LOG_DEBUG(
|
||||
"maps",
|
||||
"PLAYER: Player '{}' ({}) will be teleported to homebind in 60 "
|
||||
@@ -1771,7 +1771,7 @@ void Player::UpdateTriggerVisibility()
|
||||
|
||||
WorldPacket packet;
|
||||
udata.BuildPacket(packet);
|
||||
GetSession()->SendPacket(&packet);
|
||||
SendDirectMessage(&packet);
|
||||
}
|
||||
|
||||
void Player::UpdateForQuestWorldObjects()
|
||||
@@ -1824,7 +1824,7 @@ void Player::UpdateForQuestWorldObjects()
|
||||
|
||||
WorldPacket packet;
|
||||
udata.BuildPacket(packet);
|
||||
GetSession()->SendPacket(&packet);
|
||||
SendDirectMessage(&packet);
|
||||
}
|
||||
|
||||
void Player::UpdateTitansGrip()
|
||||
|
||||
Reference in New Issue
Block a user