Skip to content

Commit

Permalink
fix(Core/Handlers): Don't allow data to be sent while not grouped. (#…
Browse files Browse the repository at this point in the history
…19852)

Init.

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

Co-authored-by: Shauren <shauren.trinity@gmail.com>
  • Loading branch information
heyitsbench and Shauren committed Sep 2, 2024
1 parent 0504c7f commit 0158fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Handlers/GroupHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0158fa3

Please sign in to comment.