Module:Attacks/Tables: Difference between revisions

Don't return table when number of attacks is zero
mNo edit summary
(Don't return table when number of attacks is zero)
Line 50: Line 50:


     -- Generate output table
     -- Generate output table
    if Shared.tableCount(spAttTable) == 0 then
    return ''
    end
   
     local resultPart = {}
     local resultPart = {}
     table.insert(resultPart, '{|class="wikitable sortable stickyHeader"')
     table.insert(resultPart, '{|class="wikitable sortable stickyHeader"')
Line 107: Line 111:


     -- Generate output table
     -- Generate output table
    if Shared.tableCount(spAttTable) == 0 then
    return ''
    end
     local resultPart = {}
     local resultPart = {}
     table.insert(resultPart, '{|class="wikitable sortable stickyHeader"')
     table.insert(resultPart, '{|class="wikitable sortable stickyHeader"')