diff --git a/Altoholic-Addon/Altoholic/Tooltip.lua b/Altoholic-Addon/Altoholic/Tooltip.lua index f8d9f22..bb5bacc 100644 --- a/Altoholic-Addon/Altoholic/Tooltip.lua +++ b/Altoholic-Addon/Altoholic/Tooltip.lua @@ -184,6 +184,8 @@ local function GetCharacterItemCount(character, searchedID) itemCounts[5] = DataStore:GetMailItemCount(character, searchedID) itemCounts[6] = DataStore:GetCurrencyItemCount(character, searchedID) + if searchedID==6948 then return 0 end + local charCount = 0 for _, v in pairs(itemCounts) do charCount = charCount + v @@ -279,12 +281,14 @@ end local function GetRecipeOwners(professionName, link, recipeLevel) local craftName local spellID = addon:GetSpellIDFromRecipeLink(link) - + if not spellID then -- spell id unknown ? let's parse the tooltip + if true then return end craftName = GetCraftNameFromRecipeLink(link) if not craftName then return end -- still nothing usable ? then exit end + local know = {} -- list of alts who know this recipe local couldLearn = {} -- list of alts who could learn it local willLearn = {} -- list of alts who will be able to learn it later