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 (#27816)

This fixes an issue that was causing the gossip UI to get stuck when the client tried to request questgiver details that it wasnt allowed to retrieve yet
This commit is contained in:
Ovah
2022-02-26 23:18:34 +01:00
committed by GitHub
parent 8fe7748f30
commit cec71e8301

View File

@@ -17428,7 +17428,8 @@ void Player::SendQuestReward(Quest const* quest, Creature const* questGiver, uin
else if (questGiver->IsQuestGiver())
packet.LaunchQuest = true;
else if (quest->GetNextQuestInChain() && !quest->HasFlag(QUEST_FLAGS_AUTOCOMPLETE))
packet.UseQuestReward = true;
if (Quest const* rewardQuest = sObjectMgr->GetQuestTemplate(quest->GetNextQuestInChain()))
packet.UseQuestReward = CanTakeQuest(rewardQuest, false);
}
packet.HideChatMessage = hideChatMessage;