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)