Quantcast

In Player:MarkExclusions(): Just use recipe.profession - calling GetSpellInfo(recipe.profession) was retardedly broken.

James D. Callahan III [03-22-10 - 22:05]
In Player:MarkExclusions(): Just use recipe.profession - calling GetSpellInfo(recipe.profession) was retardedly broken.
Filename
Player.lua
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