Skip to content

Commit

Permalink
-Loot fix: Bots no longer try to loot item stacks that would put the …
Browse files Browse the repository at this point in the history
…bot over the max allowed items in it's inventory.
  • Loading branch information
mostlikely4r committed Oct 21, 2024
1 parent 597a3a6 commit 33e417a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/strategy/values/LootValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ uint32 StackSpaceForItem::Calculate()
if (!proto)
return maxValue;

if (proto->MaxCount > 0 && AI_VALUE2(uint32, "item count", proto->Name1) >= proto->MaxCount)
if (proto->MaxCount > 0)
return proto->MaxCount - AI_VALUE2(uint32, "item count", proto->Name1);

if (ai->HasActivePlayerMaster())
Expand Down

0 comments on commit 33e417a

Please sign in to comment.