mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
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:
@@ -956,7 +956,7 @@ void WorldSession::HandleRequestPartyMemberStatsOpcode(WorldPacket& recvData)
|
|||||||
recvData >> Guid;
|
recvData >> Guid;
|
||||||
|
|
||||||
Player* player = HashMapHolder<Player>::Find(Guid);
|
Player* player = HashMapHolder<Player>::Find(Guid);
|
||||||
if (!player)
|
if (!player || !player->IsInSameRaidWith(_player))
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_PARTY_MEMBER_STATS_FULL, 3 + 4 + 2);
|
WorldPacket data(SMSG_PARTY_MEMBER_STATS_FULL, 3 + 4 + 2);
|
||||||
data << uint8(0); // only for SMSG_PARTY_MEMBER_STATS_FULL, probably arena/bg related
|
data << uint8(0); // only for SMSG_PARTY_MEMBER_STATS_FULL, probably arena/bg related
|
||||||
|
|||||||
Reference in New Issue
Block a user