17,097
edits
(Remove unused data) |
(_getSpellUseTable: Include Alt. Magic spells for items which said spells consume (e.g. Junk/Coal)) |
||
Line 673: | Line 673: | ||
end | end | ||
function p._getSpellUseTable(item) | function p._getSpellUseTable(item) | ||
local spellList = Magic. | local spellList = Magic.getSpellsForItem(item.id, true) | ||
--Bail immediately if no spells are found | --Bail immediately if no spells are found | ||
if Shared.tableCount(spellList) == 0 then | if Shared.tableCount(spellList) == 0 then |