Add argunite filter to loot

This commit is contained in:
M. David
2022-08-19 10:20:18 +02:00
parent 930eab2143
commit d5b336dd5a
4 changed files with 18 additions and 3 deletions

View File

@@ -4,6 +4,6 @@ function(allstates, e)
local lootInfo = GetLootInfo()
aura_env.filterService:run(lootInfo)
-- CloseLoot()
CloseLoot()
return true
end

File diff suppressed because one or more lines are too long

View File

@@ -252,6 +252,21 @@ local azeriteFilter = {
end
end
}
local arguniteFilter = {
enabled = true,
qualityThreshold = 1,
filter = function(self, slot)
if (self.enabled) then
aura_env.debugLog("Argunite filter; slot: " .. slot)
local itemName = getItemName(slot)
local itemQuality = getItemQuality(slot)
if (itemName and itemQuality and itemName:match("Argunite") and itemQuality > self.qualityThreshold) then
aura_env.debugLog("Argunite filter pass")
return true
end
end
end
}
aura_env.filterService = {
filters = {

File diff suppressed because one or more lines are too long