Questdetails popup for bots without quest attached. (#705)

This commit is contained in:
EricksOliveira
2024-11-13 21:49:12 +00:00
committed by GitHub
parent 67c9b1c882
commit c1247d23f8

View File

@@ -167,6 +167,9 @@ bool ConfirmQuestAction::Execute(Event event)
p >> quest;
Quest const* qInfo = sObjectMgr->GetQuestTemplate(quest);
if (!qInfo)
return false;
quest = qInfo->GetQuestId();
if (!bot->CanTakeQuest(qInfo, false))
{