feat(Core/Commands): Quest Add (#1673)
Do not allow to take same quest XX times.
This commit is contained in:
@@ -64,6 +64,12 @@ public:
|
|||||||
handler->SetSentErrorMessage(true);
|
handler->SetSentErrorMessage(true);
|
||||||
return false;
|
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)
|
// check item starting quest (it can work incorrectly if added without item in inventory)
|
||||||
ItemTemplateContainer const* itc = sObjectMgr->GetItemTemplateStore();
|
ItemTemplateContainer const* itc = sObjectMgr->GetItemTemplateStore();
|
||||||
|
|||||||
Reference in New Issue
Block a user