Quantcast

Fix issues when you're crafting something with leather or cloth in the regents.

ackis [06-09-09 - 16:50]
Fix issues when you're crafting something with leather or cloth in the regents.
Filename
ARLDatamine.lua
RecipeDB/ARL-Leatherwork.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index f7f055d..6c09c24 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -2299,9 +2299,10 @@ do
 				scan_data.Warrior = true
 				scan_data.found_class = true
 				-- Armor types
-			elseif (strmatch(text, "cloth")) then
+			-- Check the end of the item for cloth and leather because we can craft something with those items in it
+			elseif (strmatch(text, "cloth$")) then
 				scan_data.Cloth = true
-			elseif (strmatch(text, "leather")) then
+			elseif (strmatch(text, "leather$")) then
 				scan_data.Leather = true
 			elseif (strmatch(text, "mail")) then
 				scan_data.Mail = true
diff --git a/RecipeDB/ARL-Leatherwork.lua b/RecipeDB/ARL-Leatherwork.lua
index c1d5a2c..d6b32f2 100644
--- a/RecipeDB/ARL-Leatherwork.lua
+++ b/RecipeDB/ARL-Leatherwork.lua
@@ -1811,12 +1811,12 @@ function addon:InitLeatherworking(RecipeDB)

 	-- Knothide Quiver -- 44344
 	self:addTradeSkill(RecipeDB,44344,315,34100,2,2108)
-	self:addTradeFlags(RecipeDB,44344,1,2,3,21,22,23,24,25,26,27,28,29,30,36,41,51,57)
+	self:addTradeFlags(RecipeDB,44344,1,2,3,21,22,23,24,25,26,27,28,29,30,36,41,51)
 	self:addTradeAcquire(RecipeDB,44344,3,22143,3,22144,3,22148,3,23022)

 	-- Quiver of a Thousand Feathers -- 44359
 	self:addTradeSkill(RecipeDB,44359,350,34105,1,2108)
-	self:addTradeFlags(RecipeDB,44359,1,2,4,21,22,23,24,25,26,27,28,29,30,36,41,51,57,107)
+	self:addTradeFlags(RecipeDB,44359,1,2,4,21,22,23,24,25,26,27,28,29,30,36,41,51,107)
 	self:addTradeAcquire(RecipeDB,44359,6,1011,3,21655)

 	-- Netherscale Ammo Pouch -- 44768