From e6a7d7cc26d0c9aa53ff8f885c03ac1d6c28ef1a Mon Sep 17 00:00:00 2001 From: Atidot3 Date: Sun, 28 Jul 2024 00:54:37 +0200 Subject: [PATCH] Allow bot to attack mobs they need to kill / loot for quests up to 5 levels above their level --- src/strategy/values/GrindTargetValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/values/GrindTargetValue.cpp b/src/strategy/values/GrindTargetValue.cpp index ae8fffdb..0be03904 100644 --- a/src/strategy/values/GrindTargetValue.cpp +++ b/src/strategy/values/GrindTargetValue.cpp @@ -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++)