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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user