mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-01 14:46:54 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user