Quantcast

Make sure the quality checks work

p3lim [12-23-10 - 15:35]
Make sure the quality checks work
Filename
Disenchanting.lua
diff --git a/Disenchanting.lua b/Disenchanting.lua
index 02ddb20..d9b09a6 100644
--- a/Disenchanting.lua
+++ b/Disenchanting.lua
@@ -31,7 +31,7 @@ local notDisenchantable = {
 function ns.Disenchantable(link)
 	local _, _, quality = GetItemInfo(link)

-	if(IsEquippableItem(link) and (quality and (quality > 1 or quality < 5))) then
+	if(IsEquippableItem(link) and quality and quality > 1 and quality < 5) then
 		return not notDisenchantable[link:match('item:(%d+):')]
 	end
 end