From 7a41195b8522920f6aa470e3422e8cb3e0b2bd76 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 19 Dec 2014 08:59:51 +0100 Subject: [PATCH] Add support for the Draenic Mortar --- Molinari.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Molinari.lua b/Molinari.lua index 2266031..c68ceaf 100644 --- a/Molinari.lua +++ b/Molinari.lua @@ -75,8 +75,10 @@ GameTooltip:HookScript('OnTooltipSetItem', function(self) if(AuctionFrame and AuctionFrame:IsVisible()) then return end local itemID = tonumber(string.match(itemLink, 'item:(%d+):')) - if(LibProcessable:IsMillable(itemID) and GetItemCount(itemID) >= 5) then - Molinari:Apply(itemLink, 51005, 1/2, 1, 1/2) + + local isMillable, _, _, mortarItem = LibProcessable:IsMillable(itemID) + if(isMillable and GetItemCount(itemID) >= 5) then + Molinari:Apply(itemLink, mortarItem or 51005, 1/2, 1, 1/2, not not mortarItem) elseif(LibProcessable:IsProspectable(itemID) and GetItemCount(itemID) >= 5) then Molinari:Apply(itemLink, 31252, 1, 1/3, 1/3) elseif(LibProcessable:IsDisenchantable(itemID, true)) then -- 1.7.9.5