Add inscription to prof filter

This commit is contained in:
M. David
2022-08-22 20:29:15 +02:00
parent b668fd6b30
commit 32c5a1816b
5 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -157,22 +157,24 @@ local professionFilter = {
ore = false,
leather = false,
cooking = true,
inscription = true,
filter = function(self, slot)
if (self.enabled) then
aura_env.debugLog("Profession filter; slot: " .. tostring(slot))
local itemType = getItemType(slot)
if (itemType and itemType == "Tradeskill") then
local itemSubtype = getItemSubtype(slot)
if (itemType and itemType == "Tradeskill") then
if (itemSubtype and (itemSubtype == "Herb" and self.herbs)
or (itemSubtype == "Leather" and self.leather)
or (itemSubtype == "Cloth" and self.cloth)
or (itemSubtype == "Ore" and self.ore)
or (itemSubtype == "Cooking" and self.cooking)) then
or (itemSubtype == "Cooking" and self.cooking)
or (itemSubtype == "Inscription" and self.inscription)) then
aura_env.debugLog("Profession filter pass")
return true
end
end
aura_env.debugLog("Profession filter fail " .. tostring(itemType))
aura_env.debugLog("Profession filter fail " .. tostring(itemType) .. " " .. tostring(itemSubtype))
end
end
}
@@ -363,6 +365,7 @@ aura_env.filterService = {
arguniteFilter,
ancientManaFilter,
reicpeFilter,
bloodOfSargerasFilter
},
slotsToLoot = {},
run = function(self, lootInfo)