Allow bot to attack mobs they need to kill / loot for quests up to 5 levels above their level

This commit is contained in:
Atidot3
2024-07-28 00:54:37 +02:00
parent 13647f286a
commit e6a7d7cc26

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++)