Module:Items/ComparisonTables: Difference between revisions

Fix check for empty special attacks table
(Update for v1.1)
(Fix check for empty special attacks table)
Line 241: Line 241:
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