diff --git a/CraftSim.toc b/CraftSim.toc index 93b7177c..482d815d 100644 --- a/CraftSim.toc +++ b/CraftSim.toc @@ -4,7 +4,7 @@ ## Title: CraftSim ## Notes: Calculates the average profit based on your profession stats and other tools for the war within gold making ## Author: genju -## Version: 19.1.0.1 +## Version: 19.1.0.2 ## X-Curse-Project-ID: 705015 ## X-Wago-ID: 0mNwaPKo ## X-WoWI-ID: 26519 diff --git a/Modules/CraftQueue/CraftQueue.lua b/Modules/CraftQueue/CraftQueue.lua index 8cdc53e3..ffb2b344 100644 --- a/Modules/CraftQueue/CraftQueue.lua +++ b/Modules/CraftQueue/CraftQueue.lua @@ -589,13 +589,14 @@ function CraftSim.CRAFTQ.CreateAuctionatorShoppingList() local isOrderReagent = optionalReagent:IsOrderReagentIn(craftQueueItem.recipeData) local qualityID = C_TradeSkillUI.GetItemReagentQualityByItemInfo(itemID) if not isOrderReagent and not isSelfCrafted and not GUTIL:isItemSoulbound(itemID) then + local allocatedQuantity = quantityMap[itemID] or 1 reagentMap[itemID] = reagentMap[itemID] or { itemName = optionalReagent.item:GetItemName(), qualityID = qualityID, - quantity = quantityMap[itemID] or 1 + quantity = allocatedQuantity } reagentMap[itemID].quantity = reagentMap[itemID] - .quantity * craftQueueItem.amount + .quantity + allocatedQuantity * craftQueueItem.amount end end end