Add recipe filer
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -154,7 +154,7 @@ local professionFilter = {
|
||||
cloth = false,
|
||||
ore = false,
|
||||
leather = false,
|
||||
cooking = false,
|
||||
cooking = true,
|
||||
filter = function(self, slot)
|
||||
if (self.enabled) then
|
||||
aura_env.debugLog("Profession filter; slot: " .. slot)
|
||||
@@ -308,6 +308,19 @@ local ancientManaFilter = {
|
||||
end
|
||||
end
|
||||
}
|
||||
local reicpeFilter = {
|
||||
enabled = true,
|
||||
filter = function(self, slot)
|
||||
if (self.enabled) then
|
||||
aura_env.debugLog("Recipe filter; slot: " .. slot)
|
||||
local itemName = getItemName(slot)
|
||||
if (itemName and (itemName:match("Recipe") or itemName:match("Technique"))) then
|
||||
aura_env.debugLog("Recipe filter pass")
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
|
||||
aura_env.filterService = {
|
||||
filters = {
|
||||
@@ -322,7 +335,8 @@ aura_env.filterService = {
|
||||
classGearFilter,
|
||||
azeriteFilter,
|
||||
arguniteFilter,
|
||||
ancientManaFilter
|
||||
ancientManaFilter,
|
||||
reicpeFilter,
|
||||
},
|
||||
slotsToLoot = {},
|
||||
run = function(self, lootInfo)
|
||||
|
Reference in New Issue
Block a user