feat(Core/Commands): Quest Add (#1673)

Do not allow to take same quest XX times.
This commit is contained in:
Poszer
2019-04-05 19:27:19 +02:00
committed by Nefertumm
parent 9eb52224cd
commit 819ca8e9ea

View File

@@ -64,6 +64,12 @@ public:
handler->SetSentErrorMessage(true);
return false;
}
if (player->IsActiveQuest(entry))
{
handler->PSendSysMessage("This quest is already active!");
return false;
}
// check item starting quest (it can work incorrectly if added without item in inventory)
ItemTemplateContainer const* itc = sObjectMgr->GetItemTemplateStore();