fix(Core): Suppress status opcode after gossip (#9962)
Co-authored-by: Dan Tavares <dantavar@publicisgroupe.net>
This commit is contained in:
parent
a5a66207c4
commit
ea3e140f94
1 changed files with 5 additions and 0 deletions
|
|
@ -37,6 +37,11 @@ void WorldSession::HandleQuestgiverStatusQueryOpcode(WorldPacket& recvData)
|
|||
recvData >> guid;
|
||||
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())
|
||||
return;
|
||||
|
||||
Object* questGiver = ObjectAccessor::GetObjectByTypeMask(*_player, guid, TYPEMASK_UNIT | TYPEMASK_GAMEOBJECT);
|
||||
if (!questGiver)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue