aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorMeji <alvaro.megias@outlook.com>2024-06-22 18:48:21 +0200
committerGitHub <noreply@github.com>2024-06-22 18:48:21 +0200
commit97cad9c5986233667821d8e0d20834766651acbf (patch)
treec6985b8ba21435f161c2768817d8ccfb6fb1fefb /src/server/scripts/Commands
parent5ee28a9161e763c516a968bd83127da7073dc1e7 (diff)
Core/Commands: Allow to complete tracking quests with .quest complete command (#30043)
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_quest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_quest.cpp b/src/server/scripts/Commands/cs_quest.cpp
index 3dd04ef8eea..57f1290d6d5 100644
--- a/src/server/scripts/Commands/cs_quest.cpp
+++ b/src/server/scripts/Commands/cs_quest.cpp
@@ -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());