Core/Quests: Do not tell the client to request questgiver details for the next quest in chain on quest reward if the player cannot accept it yet

Port From (https://github.com/TrinityCore/TrinityCore/commit/cec71e83017bd22036a80c7747535ac3c9ee60d4)
This commit is contained in:
hondacrx
2022-05-23 17:25:04 -04:00
parent 1181a496ec
commit 8f66ab059d
+5 -1
View File
@@ -2752,7 +2752,11 @@ namespace Game.Entities
else if (questGiver.IsQuestGiver())
packet.LaunchQuest = true;
else if (quest.NextQuestInChain != 0 && !quest.HasFlag(QuestFlags.AutoComplete))
packet.UseQuestReward = true;
{
Quest rewardQuest = Global.ObjectMgr.GetQuestTemplate(quest.NextQuestInChain);
if (rewardQuest != null)
packet.UseQuestReward = CanTakeQuest(rewardQuest, false);
}
}
packet.HideChatMessage = hideChatMessage;