Skip to content

Commit

Permalink
[AHBOT] Special condition for zero consumables
Browse files Browse the repository at this point in the history
  • Loading branch information
ike3 committed Oct 23, 2018
1 parent 382c09e commit 9fac17e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ahbot/ConsumableCategory.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ namespace ahbot
virtual bool Contains(ItemPrototype const* proto)
{
return Consumable::Contains(proto) &&
proto->SubClass == ITEM_SUBCLASS_FOOD;
(proto->SubClass == ITEM_SUBCLASS_FOOD
#ifdef MANGOSBOT_ZERO
|| proto->SubClass == ITEM_SUBCLASS_CONSUMABLE
#endif
);
}

virtual string GetName() { return "consumables.food"; }
Expand Down

0 comments on commit 9fac17e

Please sign in to comment.