fix(Core/Gossip): Do not close gossip on target deselection. (#15457)

Fixes #12399
This commit is contained in:
UltraNix
2023-03-21 22:30:43 +01:00
committed by GitHub
parent 4273b8dadd
commit ed31c22cc5

View File

@@ -538,16 +538,6 @@ void WorldSession::HandleSetSelectionOpcode(WorldPacket& recv_data)
ObjectGuid guid;
recv_data >> guid;
if (!guid)
{
// Clear any active gossip related to current selection if not present at player's client
GossipMenu& gossipMenu = _player->PlayerTalkClass->GetGossipMenu();
if (gossipMenu.GetSenderGUID() == _player->GetTarget())
{
_player->PlayerTalkClass->SendCloseGossip();
}
}
_player->SetSelection(guid);
// Change target of current autoshoot spell