From 477452702eb484299da9f77ca7319b982edb9393 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 19 Aug 2014 18:15:41 +0200 Subject: [PATCH] Only work on stacks of 5 or more items for milling and prospecting --- Molinari.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Molinari.lua b/Molinari.lua index 9b068f0..ef09de9 100644 --- a/Molinari.lua +++ b/Molinari.lua @@ -52,9 +52,9 @@ function Molinari:PLAYER_LOGIN() local _, itemLink = self:GetItem() if(itemLink and not InCombatLockdown() and IsAltKeyDown() and not (AuctionFrame and AuctionFrame:IsShown())) then local itemID = tonumber(string.match(itemLink, 'item:(%d+):')) - if(LibProcessable:IsMillable(itemID)) then + if(LibProcessable:IsMillable(itemID) and GetItemCount(itemID) >= 5) then ApplyButton(itemLink, MILLING, 1/2, 1, 1/2) - elseif(LibProcessable:IsProspectable(itemID)) then + elseif(LibProcessable:IsProspectable(itemID) and GetItemCount(itemID) >= 5) then ApplyButton(itemLink, PROSPECTING, 1, 1/3, 1/3) elseif(LibProcessable:IsDisenchantable(itemID)) then ApplyButton(itemLink, DISENCHANTING, 1/2, 1/2, 1) -- 1.7.9.5