Add recipe filer

This commit is contained in:
M. David
2022-08-19 14:03:17 +02:00
parent f618d2bc34
commit e32f26ffad
2 changed files with 17 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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)