Merge pull request #395 from atidot3/master

Allow bot to attack mobs they need to kill / loot for quests up to 5 …
This commit is contained in:
Yunfan Li
2024-07-28 10:59:02 +08:00
committed by GitHub

View File

@@ -160,7 +160,7 @@ bool GrindTargetValue::needForQuest(Unit* target)
{
QuestStatusData* questStatus = sTravelMgr->getQuestStatus(bot, questId);
if (questTemplate->GetQuestLevel() > bot->GetLevel())
if (questTemplate->GetQuestLevel() > bot->GetLevel()+5)
continue;
for (int j = 0; j < QUEST_OBJECTIVES_COUNT; j++)