Add argunite filter to loot
This commit is contained in:
@@ -4,6 +4,6 @@ function(allstates, e)
|
|||||||
|
|
||||||
local lootInfo = GetLootInfo()
|
local lootInfo = GetLootInfo()
|
||||||
aura_env.filterService:run(lootInfo)
|
aura_env.filterService:run(lootInfo)
|
||||||
-- CloseLoot()
|
CloseLoot()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -252,6 +252,21 @@ local azeriteFilter = {
|
|||||||
end
|
end
|
||||||
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 = {
|
aura_env.filterService = {
|
||||||
filters = {
|
filters = {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user