Skip to content

Commit

Permalink
-Travel logic improvement: Bots will now grind targets even if their …
Browse files Browse the repository at this point in the history
…bags are full with items they can not sell.
  • Loading branch information
mostlikely4r committed Oct 10, 2024
1 parent 8f63b25 commit 8410b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/TravelMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ bool GrindTravelDestination::isActive(Player* bot)
if (!urand(0, 10) && !AI_VALUE(bool, "should get money") && !isOut(botPos))
return false;

if (AI_VALUE(bool, "should sell"))
if (AI_VALUE(bool, "should sell") && (AI_VALUE(bool, "can sell") || AI_VALUE(bool, "can ah sell")))
return false;

CreatureInfo const* cInfo = this->getCreatureInfo();
Expand Down

0 comments on commit 8410b03

Please sign in to comment.