fix(Core/Gossips): Properly send packet with questgiver query handler. (#12290)

Fixes #12215
This commit is contained in:
UltraNix
2022-07-06 14:05:45 +02:00
committed by GitHub
parent 7814ac68cc
commit c3d8340e6b
4 changed files with 33 additions and 6 deletions

View File

@@ -38,9 +38,11 @@ void WorldSession::HandleQuestgiverStatusQueryOpcode(WorldPacket& recvData)
uint32 questStatus = DIALOG_STATUS_NONE;
GossipMenu& gossipMenu = _player->PlayerTalkClass->GetGossipMenu();
// Did we already get get a gossip menu? if so no need to status query
if (!gossipMenu.Empty())
// Did we already get a gossip menu with that NPC? if so no need to status query
if (gossipMenu.GetSenderGUID() == guid)
{
return;
}
Object* questGiver = ObjectAccessor::GetObjectByTypeMask(*_player, guid, TYPEMASK_UNIT | TYPEMASK_GAMEOBJECT);
if (!questGiver)