refactor(Core/Packets): Rewrite MSG_RANDOM_ROLL to new packet class (#10590)
* refactor(Core/Packets): Rewrite MSG_RANDOM_ROLL * cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/c0f516caee97e3fb844619dd544f7795a2b03da9) Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com> Co-Authored-By: DJScias <439655+DJScias@users.noreply.github.com> * handle crash check in DoRandomRoll() * Update MiscPackets.h * Update Player.h Co-authored-by: ForesterDev <11771800+ForesterDev@users.noreply.github.com> Co-authored-by: DJScias <439655+DJScias@users.noreply.github.com>
This commit is contained in:
@@ -1698,7 +1698,7 @@ void Group::UpdatePlayerOutOfRange(Player* player)
|
||||
}
|
||||
}
|
||||
|
||||
void Group::BroadcastPacket(WorldPacket* packet, bool ignorePlayersInBGRaid, int group, ObjectGuid ignore)
|
||||
void Group::BroadcastPacket(WorldPacket const* packet, bool ignorePlayersInBGRaid, int group, ObjectGuid ignore)
|
||||
{
|
||||
for (GroupReference* itr = GetFirstMember(); itr != nullptr; itr = itr->next())
|
||||
{
|
||||
@@ -1711,7 +1711,7 @@ void Group::BroadcastPacket(WorldPacket* packet, bool ignorePlayersInBGRaid, int
|
||||
}
|
||||
}
|
||||
|
||||
void Group::BroadcastReadyCheck(WorldPacket* packet)
|
||||
void Group::BroadcastReadyCheck(WorldPacket const* packet)
|
||||
{
|
||||
for (GroupReference* itr = GetFirstMember(); itr != nullptr; itr = itr->next())
|
||||
{
|
||||
|
||||
@@ -269,8 +269,8 @@ public:
|
||||
void SendUpdateToPlayer(ObjectGuid playerGUID, MemberSlot* slot = nullptr);
|
||||
void UpdatePlayerOutOfRange(Player* player);
|
||||
// ignore: GUID of player that will be ignored
|
||||
void BroadcastPacket(WorldPacket* packet, bool ignorePlayersInBGRaid, int group = -1, ObjectGuid ignore = ObjectGuid::Empty);
|
||||
void BroadcastReadyCheck(WorldPacket* packet);
|
||||
void BroadcastPacket(WorldPacket const* packet, bool ignorePlayersInBGRaid, int group = -1, ObjectGuid ignore = ObjectGuid::Empty);
|
||||
void BroadcastReadyCheck(WorldPacket const* packet);
|
||||
void OfflineReadyCheck();
|
||||
|
||||
/*********************************************************/
|
||||
|
||||
Reference in New Issue
Block a user