Quantcast

If a recipe requires a certain specialization, display the fact in the Acquire tooltip.

James D. Callahan III [04-23-10 - 02:52]
If a recipe requires a certain specialization, display the fact in the Acquire tooltip.
Filename
Frame.lua
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