diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-02-24 18:46:35 +0100 | 
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-11-24 00:02:13 +0100 | 
| commit | 97401a29972bc2a4313c78a2cfdb2bac9becc5cd (patch) | |
| tree | ddaf090a4815bc2a20f239c562cb81af45051b4b /src/server | |
| parent | ead8e2f534a44fc98f830c8accca146a04441e1c (diff) | |
Core/Commands: Don't re-add active quests with ".quest add" command
(cherry picked from commit f17120cc784ee1f52a24424a78a64d71ad73b713)
Diffstat (limited to 'src/server')
| -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 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); | 
