Module:Damage: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 7: Line 7:
function p.main(frame)
function p.main(frame)
     local args = getArgs(frame)
     local args = getArgs(frame)
     local tab = ''
     local tab = args[1]
     local i = 1
     local i = 1
     for k,v in pairs(args) do
     for k,v in pairs(args) do
         if string.starts(k, 'dmg') then
         if string.starts(k, 'dmg') then
             if i == 1 then
             if i > 1 then
                tab = tab
            else
                 tab = tab .. ', ' .. k
                 tab = tab .. ', ' .. k
             end
             end