From c0eaa31bb086c1150415d70c2a73c1237e78f6bc Mon Sep 17 00:00:00 2001 From: pschifferer Date: Sat, 14 Nov 2009 05:47:25 +0000 Subject: [PATCH] Made the check for displaying reagent/intermediate items acquired consider the number of items the character had before acquiring it before displaying the message. --- CauldronMain.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CauldronMain.lua b/CauldronMain.lua index 689d5a3..55fb071 100644 --- a/CauldronMain.lua +++ b/CauldronMain.lua @@ -404,7 +404,7 @@ function Cauldron:OnBagUpdate(event, bagid) local counts = Cauldron:ReagentCount(item); local amount = math.min(counts.has, intItem.amount); local str = string.format("%s: %s: %d/%d", L["Intermediate"], item, amount, intItem.amount); - if amount <= intItem.amount then + if (counts.has - itemCount) < intItem.amount then UIErrorsFrame:AddMessage(str, 0.0, 0.9, 0.4, 86, 3); end else @@ -413,7 +413,7 @@ function Cauldron:OnBagUpdate(event, bagid) local counts = Cauldron:ReagentCount(item); local amount = math.min(counts.has, rItem.amount); local str = string.format("%s: %s: %d/%d", L["Reagent"], item, amount, rItem.amount); - if amount <= rItem.amount then + if (counts.has - itemCount) <= rItem.amount then UIErrorsFrame:AddMessage(str, 0.0, 0.9, 0.0, 86, 3); end end -- 1.7.9.5