Core/Commands: Don't re-add active quests with ".quest add" command
Port From (https://github.com/TrinityCore/TrinityCore/commit/97401a29972bc2a4313c78a2cfdb2bac9becc5cd)
This commit is contained in:
@@ -60,6 +60,9 @@ namespace Game.Chat
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player.IsActiveQuest(entry))
|
||||||
|
return false;
|
||||||
|
|
||||||
// ok, normal (creature/GO starting) quest
|
// ok, normal (creature/GO starting) quest
|
||||||
if (player.CanAddQuest(quest, true))
|
if (player.CanAddQuest(quest, true))
|
||||||
player.AddQuestAndCheckCompletion(quest, null);
|
player.AddQuestAndCheckCompletion(quest, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user