mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/PacketIO: Updated packet structures to 9.2.0
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "Map.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "Player.h"
|
||||
#include "QueryPackets.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "WorldSession.h"
|
||||
@@ -92,9 +93,11 @@ void LFGPlayerScript::OnMapChanged(Player* player)
|
||||
return;
|
||||
}
|
||||
|
||||
for (GroupReference* itr = group->GetFirstMember(); itr != nullptr; itr = itr->next())
|
||||
if (Player* member = itr->GetSource())
|
||||
player->GetSession()->SendNameQueryOpcode(member->GetGUID());
|
||||
WorldPackets::Query::QueryPlayerNameResponse response;
|
||||
for (Group::MemberSlot const& memberSlot : group->GetMemberSlots())
|
||||
player->GetSession()->BuildNameQueryData(memberSlot.guid, response.Players.emplace_back());
|
||||
|
||||
player->SendDirectMessage(response.Write());
|
||||
|
||||
if (sLFGMgr->selectedRandomLfgDungeon(player->GetGUID()))
|
||||
player->CastSpell(player, LFG_SPELL_LUCK_OF_THE_DRAW, true);
|
||||
|
||||
Reference in New Issue
Block a user