diff --git a/src/strategy/actions/SellAction.cpp b/src/strategy/actions/SellAction.cpp index 2a15d08c..cafe9192 100644 --- a/src/strategy/actions/SellAction.cpp +++ b/src/strategy/actions/SellAction.cpp @@ -74,13 +74,18 @@ bool SellAction::Execute(Event event) return true; } - std::vector items = parseItems(text, ITERATE_ITEMS_IN_BAGS); - for (Item* item : items) + if (text == "all") { - Sell(item); + std::vector items = parseItems(text, ITERATE_ITEMS_IN_BAGS); + for (Item *item : items) + { + Sell(item); + } + return true; } - return true; + botAI->TellError("Usage: s gray/*/vendor/all"); + return false; } void SellAction::Sell(FindItemVisitor* visitor)