mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 18:30:27 +00:00
quest share
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user