From fb4c84acaa920c80078dc127e2e510a1b236f17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Mon, 4 Mar 2024 09:52:08 +0100 Subject: [PATCH] Fix issue with looting AP --- LegionWA/AutoLoot/Init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LegionWA/AutoLoot/Init.lua b/LegionWA/AutoLoot/Init.lua index 4d95c51..56f62c3 100644 --- a/LegionWA/AutoLoot/Init.lua +++ b/LegionWA/AutoLoot/Init.lua @@ -67,7 +67,7 @@ local function getItemSubclassId(slot) if slot == nil then return 0, string.format("Slot can not be nil") end local itemLink, err = getItemLink(slot) if err then return 0, err end - local subclassId = select(12, GetItemInfo(itemLink)) + local subclassId = select(13, GetItemInfo(itemLink)) if subclassId == nil then return 0, string.format("GetItemInfo returned nil for slot %d", slot) end return subclassId, nil end