fix(Core/Gossip): Do not close gossip on target deselection. (#15457)
Fixes #12399
This commit is contained in:
@@ -538,16 +538,6 @@ void WorldSession::HandleSetSelectionOpcode(WorldPacket& recv_data)
|
|||||||
ObjectGuid guid;
|
ObjectGuid guid;
|
||||||
recv_data >> 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);
|
_player->SetSelection(guid);
|
||||||
|
|
||||||
// Change target of current autoshoot spell
|
// Change target of current autoshoot spell
|
||||||
|
|||||||
Reference in New Issue
Block a user