-Fixed ilvl search argument

This commit is contained in:
merstrax
2022-07-08 08:04:15 -04:00
parent 7c719da6ec
commit 8b2af26983
+3 -3
View File
@@ -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)};