17,105
edits
(_getEquipmentTable: Fix regression in sort order of Attack Speed column) |
(_getEquipmentTable: Fix weapon type detection for ranged weapons equipped to the quiver slot (javelin, knives)) |
||
Line 28: | Line 28: | ||
end | end | ||
local isWeaponType = itemList[1].validSlots ~= nil and Shared.contains(itemList[1].validSlots, 'Weapon') and Shared.contains(weaponTypes, itemList[1].type) | local isWeaponType = ((itemList[1].validSlots ~= nil and Shared.contains(itemList[1].validSlots, 'Weapon')) | ||
or (itemList[1].occupiesSlots ~= nil and Shared.contains(itemList[1].occupiesSlots, 'Weapon'))) and Shared.contains(weaponTypes, itemList[1].type) | |||
--Now that we have a preliminary list, let's figure out which columns are irrelevant (IE are zero for all items in the selection) | --Now that we have a preliminary list, let's figure out which columns are irrelevant (IE are zero for all items in the selection) |