fix(Core/Handlers): Don't allow data to be sent while not grouped. (#19852)

Init.

https: //github.com/TrinityCore/TrinityCore/commit/f57647287af1f47a1c4a503cde654d6ff8f4261c

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Benjamin Jackson
2024-09-02 14:22:01 -04:00
committed by GitHub
parent 0504c7f9de
commit 0158fa3e9e

View File

@@ -956,7 +956,7 @@ void WorldSession::HandleRequestPartyMemberStatsOpcode(WorldPacket& recvData)
recvData >> Guid;
Player* player = HashMapHolder<Player>::Find(Guid);
if (!player)
if (!player || !player->IsInSameRaidWith(_player))
{
WorldPacket data(SMSG_PARTY_MEMBER_STATS_FULL, 3 + 4 + 2);
data << uint8(0); // only for SMSG_PARTY_MEMBER_STATS_FULL, probably arena/bg related