Fix issue with looting AP

This commit is contained in:
2024-03-04 09:52:08 +01:00
parent 28a3b9b0b0
commit fb4c84acaa

View File

@@ -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