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,
|
ore = false,
|
||||||
leather = false,
|
leather = false,
|
||||||
cooking = true,
|
cooking = true,
|
||||||
|
inscription = true,
|
||||||
filter = function(self, slot)
|
filter = function(self, slot)
|
||||||
if (self.enabled) then
|
if (self.enabled) then
|
||||||
aura_env.debugLog("Profession filter; slot: " .. tostring(slot))
|
aura_env.debugLog("Profession filter; slot: " .. tostring(slot))
|
||||||
local itemType = getItemType(slot)
|
local itemType = getItemType(slot)
|
||||||
|
local itemSubtype = getItemSubtype(slot)
|
||||||
if (itemType and itemType == "Tradeskill") then
|
if (itemType and itemType == "Tradeskill") then
|
||||||
local itemSubtype = getItemSubtype(slot)
|
|
||||||
if (itemSubtype and (itemSubtype == "Herb" and self.herbs)
|
if (itemSubtype and (itemSubtype == "Herb" and self.herbs)
|
||||||
or (itemSubtype == "Leather" and self.leather)
|
or (itemSubtype == "Leather" and self.leather)
|
||||||
or (itemSubtype == "Cloth" and self.cloth)
|
or (itemSubtype == "Cloth" and self.cloth)
|
||||||
or (itemSubtype == "Ore" and self.ore)
|
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")
|
aura_env.debugLog("Profession filter pass")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
aura_env.debugLog("Profession filter fail " .. tostring(itemType))
|
aura_env.debugLog("Profession filter fail " .. tostring(itemType) .. " " .. tostring(itemSubtype))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
@@ -363,6 +365,7 @@ aura_env.filterService = {
|
|||||||
arguniteFilter,
|
arguniteFilter,
|
||||||
ancientManaFilter,
|
ancientManaFilter,
|
||||||
reicpeFilter,
|
reicpeFilter,
|
||||||
|
bloodOfSargerasFilter
|
||||||
},
|
},
|
||||||
slotsToLoot = {},
|
slotsToLoot = {},
|
||||||
run = function(self, lootInfo)
|
run = function(self, lootInfo)
|
||||||
|
|||||||
Reference in New Issue
Block a user