mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user