Core/Quests: Fixed quest dialog not closing automatically when there are no other follow-up quests for the quest giver

This commit is contained in:
HuangStomach
2023-06-08 12:07:41 +02:00
committed by Shauren
parent 9805b133c9
commit 78b3f6309f

View File

@@ -16968,7 +16968,7 @@ void Player::SendQuestReward(Quest const* quest, Creature const* questGiver, uin
if (questGiver->IsGossip())
packet.LaunchGossip = true;
else if (questGiver->IsQuestGiver())
packet.LaunchQuest = true;
packet.LaunchQuest = (GetQuestDialogStatus(questGiver) & ~QuestGiverStatus::Future) != QuestGiverStatus::None;
else if (quest->GetNextQuestInChain() && !quest->HasFlag(QUEST_FLAGS_AUTOCOMPLETE))
if (Quest const* rewardQuest = sObjectMgr->GetQuestTemplate(quest->GetNextQuestInChain()))
packet.UseQuestReward = CanTakeQuest(rewardQuest, false);