allow grinding

This commit is contained in:
Yunfan Li
2023-12-18 17:15:54 +08:00
parent ced051b16c
commit 93cdd79718
4 changed files with 6 additions and 7 deletions

View File

@@ -48,8 +48,8 @@ bool AttackAnythingAction::isUseful()
if (!name.empty() && name.find("Dummy") != std::string::npos) // Target is not a targetdummy
return false;
if (!ChooseRpgTargetAction::isFollowValid(bot, target)) //Do not grind mobs far away from master.
return false;
// if (!ChooseRpgTargetAction::isFollowValid(bot, target)) //Do not grind mobs far away from master.
// return false;
return true;
}

View File

@@ -1491,7 +1491,7 @@ bool MoveRandomAction::Execute(Event event)
bool MoveRandomAction::isUseful()
{
return !AI_VALUE(GuidPosition, "rpg target") && !botAI->HasRealPlayerMaster();
return !AI_VALUE(GuidPosition, "rpg target");
}
bool MoveInsideAction::Execute(Event event)