Core/Commands: Allow to complete tracking quests with .quest complete command (#30043)

(cherry picked from commit 97cad9c598)
This commit is contained in:
Meji
2024-06-22 18:48:21 +02:00
committed by Ovahlord
parent 0f6af79714
commit 0f00a33175

View File

@@ -225,7 +225,7 @@ public:
}
// If player doesn't have the quest
if (player->GetQuestStatus(quest->GetQuestId()) == QUEST_STATUS_NONE
if ((player->GetQuestStatus(quest->GetQuestId()) == QUEST_STATUS_NONE && !quest->HasFlag(QUEST_FLAGS_TRACKING_EVENT))
|| DisableMgr::IsDisabledFor(DISABLE_TYPE_QUEST, quest->GetQuestId(), nullptr))
{
handler->PSendSysMessage(LANG_COMMAND_QUEST_NOTFOUND, quest->GetQuestId());