From 53f51639d2b4c2a217a86c0e2f05d46a5304fb5b Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sat, 23 Jul 2016 20:25:38 -0400 Subject: [PATCH] LFGDungeon Frame Fix Small change to prevent error on LFGDungeon Frame when hovering over a Savage Satchel of Cooperation. (Thanks to @jsutan from GitHub) --- BagSync.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BagSync.lua b/BagSync.lua index 4e2de79..d24c2d5 100644 --- a/BagSync.lua +++ b/BagSync.lua @@ -834,7 +834,7 @@ end local function AddItemToTooltip(frame, link) --workaround if (link) then local itemId = tonumber(string.match(link, "item:(%d+):")) -- get itemID // itemID seems to be "0" for every reagent in profession window?! - if (itemId == nil or itemId == 0 and TradeSkillFrame ~= nil and TradeSkillFrame:IsVisible()) then -- some other frames show ID = 0 aswell, so limit this workaround to the profession window || IMPORTANT: TradeSkillFrame ~= nil has to be checked BEFORE TradeSkillFrame:IsVisible() + if ((itemId == nil or itemId == 0) and (TradeSkillFrame ~= nil and TradeSkillFrame:IsVisible())) then -- some other frames show ID = 0 aswell, so limit this workaround to the profession window || IMPORTANT: TradeSkillFrame ~= nil has to be checked BEFORE TradeSkillFrame:IsVisible() local newItemId if (GetMouseFocus() == TradeSkillFrame.DetailsFrame.Contents.ResultIcon) then --replace TradeSkill newItemId = tonumber(C_TradeSkillUI.GetRecipeItemLink(TradeSkillFrame.RecipeList.selectedRecipeID):match("item:(%d+):")) -- 1.7.9.5