Module:ModifierTables: Difference between revisions

fixed a potential bug with getModifierTable if no maxOtherMods was sent in
(I think I made it so that modifier tables now will only hide at least two rows)
(fixed a potential bug with getModifierTable if no maxOtherMods was sent in)
Line 408: Line 408:
   local getOpposites = frame.args ~= nil and frame.args[3] or frame[3]
   local getOpposites = frame.args ~= nil and frame.args[3] or frame[3]
   local displayOtherMods = frame.args ~= nil and frame.args.displayOtherMods or frame.displayOtherMods
   local displayOtherMods = frame.args ~= nil and frame.args.displayOtherMods or frame.displayOtherMods
   local maxOtherMods = frame.args ~= nil and tonumber(frame.args.maxOtherMods)
   local maxOtherMods = frame.args ~= nil and tonumber(frame.args.maxOtherMods) or 5


   if Shared.contains(modifier, ',') then
   if Shared.contains(modifier, ',') then