From 71f79ff68dc99d088f6645b2f2d0ea221cced7de Mon Sep 17 00:00:00 2001 From: luis Date: Thu, 5 Nov 2026 20:41:29 -0300 Subject: [PATCH] Core/Quests: Update phases on quest status and objective progress changes --- src/server/game/Entities/Player/Player.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 295ea203..7df2ad12 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -16797,6 +16797,13 @@ void Player::SetQuestStatus(uint32 questId, QuestStatus status, bool update /*= if (!quest->IsTurnIn()) m_QuestStatusSave[questId] = QUEST_DEFAULT_SAVE_TYPE; + //WowCommunity + // Phases before the hooks, anything a script summons inherits them. Visibility waits for the next notify, this can run inside the objective loop + if (IsInWorld() && oldStatus != status && quest->HasFlag(QUEST_FLAGS_UPDATE_PHASESHIFT)) + if (PhasingHandler::OnConditionChange(this, false)) + UpdateObjectVisibility(false); + //WowCommunity + sScriptMgr->OnQuestStatusChange(this, questId); sScriptMgr->OnQuestStatusChange(this, quest, oldStatus, status); } @@ -17801,6 +17808,12 @@ void Player::UpdateQuestObjectiveProgress(QuestObjectiveType objectiveType, int3 if (objectiveWasComplete != objectiveIsNowComplete) anyObjectiveChangedCompletionState = true; + //WowCommunity + // Any progress, phase conditions can ask for a partial count + if (IsInWorld() && quest->HasFlag(QUEST_FLAGS_UPDATE_PHASESHIFT)) + updatePhaseShift = true; + //WowCommunity + if (objectiveIsNowComplete && objective->CompletionEffect) { if (objective->CompletionEffect->GameEventId)