From 6858332a3ad2acec74ca001099f9d233d1e4bb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Mon, 18 Mar 2024 16:31:14 +0100 Subject: [PATCH] Update loot filters --- FreshShit/AutoLoot/Init.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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