comparison Junk.lua @ 187:180cb1458674 v91

Fixed an issue with the junk list after the pre-patch.
author yellowfive
date Tue, 13 Oct 2020 17:08:49 -0700
parents a7f2ba17c39a
children 4aeedce4c995
comparison
equal deleted inserted replaced
186:3c2626ed5f82 187:180cb1458674
409 if not usedItems[equippedBagId][slotId] then 409 if not usedItems[equippedBagId][slotId] then
410 local itemLink = GetInventoryItemLink("player", slotId) 410 local itemLink = GetInventoryItemLink("player", slotId)
411 if itemLink then 411 if itemLink then
412 local itemData = Amr.ParseItemLink(itemLink) 412 local itemData = Amr.ParseItemLink(itemLink)
413 if itemData then 413 if itemData then
414
415 --[[
414 -- see if this is an azerite item and read azerite power ids 416 -- see if this is an azerite item and read azerite power ids
415 loc:SetEquipmentSlot(slotId) 417 loc:SetEquipmentSlot(slotId)
416 if C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem(loc) then 418 if C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem(loc) then
417 local powers = Amr.ReadAzeritePowers(loc) 419 local powers = Amr.ReadAzeritePowers(loc)
418 if powers then 420 if powers then
419 itemData.azerite = powers 421 itemData.azerite = powers
420 end 422 end
421 end 423 end]]
422 424
423 -- see if it matches 425 -- see if it matches
424 if Amr.CountItemDifferences(matchItem, itemData) == 0 then 426 if Amr.CountItemDifferences(matchItem, itemData) == 0 then
425 usedItems[equippedBagId][slotId] = true 427 usedItems[equippedBagId][slotId] = true
426 itemData.bagId = bagId 428 itemData.bagId = bagId