fix(Core/Gossip): Do not close gossip on target deselection. (#15457)
Fixes #12399
This commit is contained in:
parent
4273b8dadd
commit
ed31c22cc5
1 changed files with 0 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue