Skip to content

Commit

Permalink
-Travel improvement: Bots now only look a limited distance to fight r…
Browse files Browse the repository at this point in the history
…ares/world bosses that drop loot they want.
  • Loading branch information
mostlikely4r committed Oct 5, 2024
1 parent 0f2287b commit 72c270a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playerbot/TravelMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ bool BossTravelDestination::isActive(Player* bot)

WorldPosition botPos(bot);

//Do not move to overworld bosses/uniques that are far away.
if (points.front()->isOverworld() && this->distanceTo(botPos) > 2000.0f)
return false;

if (!isOut(botPos))
{
std::list<ObjectGuid> targets = AI_VALUE(std::list<ObjectGuid>, "possible targets");
Expand Down

0 comments on commit 72c270a

Please sign in to comment.