quest share

This commit is contained in:
Yunfan Li
2023-12-18 20:29:48 +08:00
parent 493be84f56
commit 3c2bc1c959
4 changed files with 11 additions and 3 deletions

View File

@@ -88,6 +88,14 @@ bool AcceptQuestShareAction::Execute(Event event)
return false;
quest = qInfo->GetQuestId();
if (bot->HasQuest(quest))
{
bot->SetDivider(ObjectGuid::Empty);
botAI->TellError("I have this quest");
return false;
}
if (!bot->CanTakeQuest(qInfo, false))
{
// can't take quest