From 0797535d329851b97d00a8480137de9074cecd14 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 19 Dec 2014 08:58:02 +0100 Subject: [PATCH] Update for changes to LibProcessable --- Molinari.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Molinari.lua b/Molinari.lua index 3be95b7..4d2e942 100644 --- a/Molinari.lua +++ b/Molinari.lua @@ -82,11 +82,11 @@ GameTooltip:HookScript('OnTooltipSetItem', function(self) elseif(LibProcessable:IsDisenchantable(itemID)) then Molinari:Apply(itemLink, 13262, 1/2, 1/2, 1) else - local openable, keyID = LibProcessable:IsOpenable(itemID) - if(openable) then - if(keyID) then - Molinari:Apply(itemLink, keyID, 0, 1, 1, true) - else + local isOpenable, _, _, keyItem = LibProcessable:IsOpenable(itemID) + if(isOpenable) then + if(keyItem and GetItemCount(keyItem) > 0) then + Molinari:Apply(itemLink, keyItem, 0, 1, 1, true) + elseif(not keyItem) then Molinari:Apply(itemLink, 1804, 0, 1, 1) end end -- 1.7.9.5