From fdf733abccc21e98911b8255ec9ffef449298330 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 22 Mar 2010 18:05:13 -0400 Subject: [PATCH] In Player:MarkExclusions(): Just use recipe.profession - calling GetSpellInfo(recipe.profession) was retardedly broken. --- Player.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Player.lua b/Player.lua index d6556c0..651e1ec 100644 --- a/Player.lua +++ b/Player.lua @@ -75,11 +75,9 @@ function Player:MarkExclusions() local recipe = recipe_list[spell_id] if recipe then - local tmp_prof = GetSpellInfo(recipe.profession) - - if not recipe.is_known and tmp_prof == profession then + if recipe.is_known and recipe.profession == profession then known_count = known_count + 1 - elseif tmp_prof == profession then + elseif recipe_profession == profession then unknown_count = unknown_count + 1 end end -- 1.7.9.5