diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-02-24 18:46:35 +0100 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2019-02-24 18:46:35 +0100 |
| commit | f17120cc784ee1f52a24424a78a64d71ad73b713 (patch) | |
| tree | 655175904d22adfe51f1f0d3efad30424e84874c /src | |
| parent | d2bff6dcec73603ded856c634eddc4f5e7191d65 (diff) | |
Core/Commands: Don't re-add active quests with ".quest add" command
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Commands/cs_quest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_quest.cpp b/src/server/scripts/Commands/cs_quest.cpp index eda1635f972..3e089717c3a 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); |
