Core/PacketIO: Add missing bit to SMSG_QUEST_GIVER_QUEST_DETAILS

Closes #30191
This commit is contained in:
Shauren
2024-09-06 16:06:57 +02:00
parent 16464e9aa0
commit 2c9d1f9e5c
3 changed files with 3 additions and 0 deletions

View File

@@ -490,6 +490,7 @@ void PlayerMenu::SendQuestGiverQuestDetails(Quest const* quest, ObjectGuid npcGU
packet.QuestInfoID = quest->GetQuestInfoID();
packet.QuestSessionBonus = 0; //quest->GetQuestSessionBonus(); // this is only sent while quest session is active
packet.AutoLaunched = autoLaunched;
packet.ResetByScheduler = quest->IsResetByScheduler();
packet.DisplayPopup = displayPopup;
packet.QuestFlags[0] = quest->GetFlags() & (sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_ACCEPT) ? ~QUEST_FLAGS_AUTO_ACCEPT : ~0);
packet.QuestFlags[1] = quest->GetFlagsEx();

View File

@@ -507,6 +507,7 @@ WorldPacket const* QuestGiverQuestDetails::Write()
_worldPacket << Bits<1>(AutoLaunched);
_worldPacket << Bits<1>(FromContentPush);
_worldPacket << Bits<1>(false); // unused in client
_worldPacket << Bits<1>(ResetByScheduler);
_worldPacket << Bits<1>(StartCheat);
_worldPacket << Bits<1>(DisplayPopup);
_worldPacket.FlushBits();

View File

@@ -440,6 +440,7 @@ namespace WorldPackets
bool StartCheat = false;
bool AutoLaunched = false;
bool FromContentPush = false;
bool ResetByScheduler = false;
};
struct QuestObjectiveCollect