From 8b2af2698339de222346a441b04c89c99667266d Mon Sep 17 00:00:00 2001 From: merstrax Date: Fri, 8 Jul 2022 08:04:15 -0400 Subject: [PATCH] -Fixed ilvl search argument --- AtlasLoot/Core/Search.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AtlasLoot/Core/Search.lua b/AtlasLoot/Core/Search.lua index 1ad7f30..65b0395 100644 --- a/AtlasLoot/Core/Search.lua +++ b/AtlasLoot/Core/Search.lua @@ -446,7 +446,7 @@ local function nameMatches(name, searchText) end local RelationalFunctions = { - ["ilv"] = {IsItemLevelFilterMatch, 3}, + ["ilvl"] = {IsItemLevelFilterMatch, 3}, ["minlvl"] = {IsMinLevelFilterMatch, 4}, ["type"] = {IsItemTypeMatch, 6}, ["slot"] = {IsItemSlotMatch, 5}, @@ -575,7 +575,7 @@ local RelationalFunctions = { ["resarcane"] = {IsItemStatMatch, 7}, ["resarc"] = {IsItemStatMatch, 7}, - ["dif"] = {IsItemDifficulty, 1} + ["dif"] = {IsItemDifficulty, 8}, } local function GetItemDetails(itemId, atlasName) @@ -681,7 +681,7 @@ local function DoSearch(searchText) if type(itemId) == "number" and itemId > 0 then if difficulty ~= 2 then - itemId = AL_FindId(string.sub(atlasName, 5), difficulty) or itemId; + itemId = AL_FindId(itemId, difficulty) or itemId; end local itemDetails = {GetItemDetails(itemId, atlasName)};