Skip to content

Commit

Permalink
Fix adding gems to items
Browse files Browse the repository at this point in the history
Always require gem to be in inventory to add gems
  • Loading branch information
celguar committed Nov 30, 2024
1 parent 791e37c commit dde141f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playerbot/strategy/actions/UseItemAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ bool RequiresItemToUse(const ItemPrototype* itemProto, PlayerbotAI* ai, Player*
if (itemProto->Class == ITEM_CLASS_QUEST)
return true;

#ifndef MANGOSBOT_ZERO
// If item is a gem
if (itemProto->Class == ITEM_CLASS_GEM)
return true;
#endif

return false;
}

Expand Down

0 comments on commit dde141f

Please sign in to comment.