Core/Quests: fixed accepting shareable chain quests when the previous quest was completed via UI popup

This commit is contained in:
Ovahlord
2021-03-28 11:20:19 +02:00
parent df8e039b28
commit 6de4fe935d

View File

@@ -127,7 +127,8 @@ void WorldSession::HandleQuestgiverAcceptQuestOpcode(WorldPackets::Quest::QuestG
if (Player* playerQuestObject = object->ToPlayer())
{
if ((_player->GetPlayerSharingQuest() && _player->GetPlayerSharingQuest() != packet.QuestGiverGUID) || !playerQuestObject->CanShareQuest(packet.QuestID))
if ((!_player->GetPlayerSharingQuest().IsEmpty() && _player->GetPlayerSharingQuest() != packet.QuestGiverGUID)
|| (_player != playerQuestObject && !playerQuestObject->CanShareQuest(packet.QuestID)))
{
CLOSE_GOSSIP_CLEAR_SHARING_INFO();
return;