mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Allow bot to attack mobs they need to kill / loot for quests up to 5 levels above their level
This commit is contained in:
@@ -160,7 +160,7 @@ bool GrindTargetValue::needForQuest(Unit* target)
|
|||||||
{
|
{
|
||||||
QuestStatusData* questStatus = sTravelMgr->getQuestStatus(bot, questId);
|
QuestStatusData* questStatus = sTravelMgr->getQuestStatus(bot, questId);
|
||||||
|
|
||||||
if (questTemplate->GetQuestLevel() > bot->GetLevel())
|
if (questTemplate->GetQuestLevel() > bot->GetLevel()+5)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (int j = 0; j < QUEST_OBJECTIVES_COUNT; j++)
|
for (int j = 0; j < QUEST_OBJECTIVES_COUNT; j++)
|
||||||
|
|||||||
Reference in New Issue
Block a user