aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeji <alvaro.megias@outlook.com>2024-06-22 18:48:21 +0200
committerOvahlord <dreadkiller@gmx.de>2024-06-23 23:52:08 +0200
commit0f00a33175d4eb1086ee5f13ed6dcc0882ee8ae4 (patch)
tree91f249672cd39d661162a3fec1bc4891c9d8e1a8 /src
parent0f6af797149e00a6139adef3681cc41ae99e6d5b (diff)
Core/Commands: Allow to complete tracking quests with .quest complete command (#30043)
(cherry picked from commit 97cad9c5986233667821d8e0d20834766651acbf)
Diffstat (limited to 'src')
-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());