From 55dd6543152506049e4503a228893e1735c455fd Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 22 Apr 2010 22:52:43 -0400 Subject: [PATCH] If a recipe requires a certain specialization, display the fact in the Acquire tooltip. --- Frame.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Frame.lua b/Frame.lua index f116fed..eba532d 100644 --- a/Frame.lua +++ b/Frame.lua @@ -873,6 +873,15 @@ do end acquire_tip:AddSeparator() + if recipe.specialty then + local spec = recipe.specialty + local spec_name = GetSpellInfo(spec) + local known = (spec == Player["Specialty"]) + + ttAdd(0, -1, false, string.format(_G.ITEM_REQ_SKILL, spec_name), known and BASIC_COLORS["white"] or difficulty["impossible"]) + acquire_tip:AddSeparator() + end + ttAdd(0, -1, false, L["Obtained From"] .. " : ", BASIC_COLORS["normal"]) local playerFaction = Player.faction -- 1.7.9.5