Add inscription to prof filter
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user