From 461ec39d0bfb7e7151d62506b8f9987fde69617d Mon Sep 17 00:00:00 2001 From: NathanHandley Date: Mon, 27 Nov 2023 19:12:37 -0600 Subject: [PATCH] Added enchanting trade goods --- src/AuctionHouseBot.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index 742b9c9..4f16c8a 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -325,8 +325,11 @@ void AuctionHouseBot::populateItemCandidateList() continue; } - // Disable all items that have neither a sell or a buy price, with exception of item enhancements - if (itr->second.SellPrice == 0 && itr->second.BuyPrice == 0 && itr->second.Class != ITEM_CLASS_CONSUMABLE && itr->second.SubClass != ITEM_SUBCLASS_ITEM_ENHANCEMENT) + // Disable all items that have neither a sell or a buy price, with exception of item enhancements and trade goods + bool isEnchantingTradeGood = (itr->second.Class == ITEM_CLASS_TRADE_GOODS && itr->second.SubClass == ITEM_SUBCLASS_ENCHANTING); + bool isItemEnhancement = (itr->second.Class == ITEM_CLASS_CONSUMABLE && itr->second.SubClass == ITEM_SUBCLASS_ITEM_ENHANCEMENT); + bool hasNoPrice = (itr->second.SellPrice == 0 && itr->second.BuyPrice == 0); + if (hasNoPrice == true && isItemEnhancement == false && isEnchantingTradeGood == false) { if (debug_Out_Filters) LOG_ERROR("module", "AuctionHouseBot: Item {} disabled misc item", itr->second.ItemId);