From 97401a29972bc2a4313c78a2cfdb2bac9becc5cd Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 24 Feb 2019 18:46:35 +0100 Subject: Core/Commands: Don't re-add active quests with ".quest add" command (cherry picked from commit f17120cc784ee1f52a24424a78a64d71ad73b713) --- src/server/scripts/Commands/cs_quest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_quest.cpp b/src/server/scripts/Commands/cs_quest.cpp index 769a8b7d3de..825e94beb5b 100644 --- a/src/server/scripts/Commands/cs_quest.cpp +++ b/src/server/scripts/Commands/cs_quest.cpp @@ -95,6 +95,9 @@ public: return false; } + if (player->IsActiveQuest(entry)) + return false; + // ok, normal (creature/GO starting) quest if (player->CanAddQuest(quest, true)) player->AddQuestAndCheckCompletion(quest, nullptr); -- cgit v1.2.3