diff --git a/FreshShit/AutoLoot/Init.lua b/FreshShit/AutoLoot/Init.lua index 0479bc0..daa1242 100644 --- a/FreshShit/AutoLoot/Init.lua +++ b/FreshShit/AutoLoot/Init.lua @@ -369,6 +369,36 @@ local bloodOfSargerasFilter = Filter.new({ ["name"] = getItemName }, if debug then print(string.format("Blood of Sargeras filter fail for %s", provided.name)) end return false end) +local primalSpiritFilter = Filter.new({ ["name"] = getItemName }, + function(slot, provided) + ---@cast provided { name: string } + if provided.name == "Primal Spirit" then + if debug then print(string.format("Primal Spirit filter pass for %s", provided.name)) end + return true + end + if debug then print(string.format("Primal Spirit filter fail for %s", provided.name)) end + return false + end) +local apexisCrystalFilter = Filter.new({ ["name"] = getItemName }, + function(slot, provided) + ---@cast provided { name: string } + if provided.name == "Apexis Crystal" then + if debug then print(string.format("Apexis Crystal filter pass for %s", provided.name)) end + return true + end + if debug then print(string.format("Apexis Crystal filter fail for %s", provided.name)) end + return false + end) +local nethershardFilter = Filter.new({ ["name"] = getItemName }, + function(slot, provided) + ---@cast provided { name: string } + if provided.name == "Nethershard" then + if debug then print(string.format("Nethershard filter pass for %s", provided.name)) end + return true + end + if debug then print(string.format("Nethershard filter fail for %s", provided.name)) end + return false + end) local bloodhunerQuarryFilter = Filter.new({ ["name"] = getItemName }, function(slot, provided) ---@cast provided { name: string } @@ -481,6 +511,9 @@ local filters = { -- reicpeFilter, valueFilter, arguniteClusterFilter, + primalSpiritFilter, + apexisCrystalFilter, + nethershardFilter, } ---@class FilterService