Quantcast

In Player:MarkExclusions(): Replaced raw bit.band() use with recipe:HasState()

James D. Callahan III [04-09-10 - 04:01]
In Player:MarkExclusions(): Replaced raw bit.band() use with recipe:HasState()
Filename
Player.lua
diff --git a/Player.lua b/Player.lua
index 896d299..c0b088f 100644
--- a/Player.lua
+++ b/Player.lua
@@ -76,7 +76,7 @@ function Player:MarkExclusions()

 	for spell_id in pairs(exclusion_list) do
 		local recipe = recipe_list[spell_id]
-		local is_known = (bit.band(recipe.state, SF.KNOWN) == SF.KNOWN)
+		local is_known = recipe:HasState("KNOWN")

 		if recipe then
 			if is_known and recipe.profession == profession then