From e5bb456a03038ea96831a80147bc8420b9de0462 Mon Sep 17 00:00:00 2001 From: torhal Date: Thu, 10 Dec 2009 02:10:29 +0000 Subject: [PATCH] Changed the tooltip hook for mob drops to only show a drop if the character has the appropriate tradeskill. --- ARL.lua | 3 ++- Frame.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ARL.lua b/ARL.lua index 5521324..709a384 100644 --- a/ARL.lua +++ b/ARL.lua @@ -488,8 +488,9 @@ function addon:OnInitialize() if mob and mob["DropList"] then for spell_id in pairs(mob["DropList"]) do local recipe = RecipeList[spell_id] + local skill_level = Player["Professions"][GetSpellInfo(recipe["Profession"])] - if not recipe["Known"] or shifted then + if skill_level and not recipe["Known"] or shifted then local _, _, _, hex = GetItemQualityColor(recipe["Rarity"]) self:AddLine("Drops: "..hex..recipe["Name"].."|r ("..recipe["Level"]..")") diff --git a/Frame.lua b/Frame.lua index ed4cacc..4133b6d 100644 --- a/Frame.lua +++ b/Frame.lua @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------- --- ARLFrame.lua Frame functions for all of AckisRecipeList +-- Frame.lua Frame functions for all of AckisRecipeList ------------------------------------------------------------------------------- -- File date: @file-date-iso@ -- File revision: @file-revision@ -- 1.7.9.5