Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
Fix check for empty special attacks table
(_getCategoryTable: Correct weapon & quiver item selection rules)
(Fix check for empty special attacks table)
Line 201: Line 201:
end
end
--For items with a special attack, show the details
--For items with a special attack, show the details
if not Shared.tableIsEmpty(item.specialAttacks) then
if item.specialAttacks ~= nil and not Shared.tableIsEmpty(item.specialAttacks) then
table.insert(txtLines, "'''Special Attack:'''")
table.insert(txtLines, "'''Special Attack:'''")
for i, spAttID in ipairs(item.specialAttacks) do
for i, spAttID in ipairs(item.specialAttacks) do