mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Commands: Don't re-add active quests with ".quest add" command
(cherry picked from commit f17120cc78)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user