Changed the tooltip hook for mob drops to only show a drop if the character has the appropriate tradeskill.
torhal [12-10-09 - 02:10]
Changed the tooltip hook for mob drops to only show a drop if the character has the appropriate tradeskill.
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@