feat(Core/Commands): Quest Add (#1673)
Do not allow to take same quest XX times.
This commit is contained in:
parent
9eb52224cd
commit
819ca8e9ea
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue