diff --git a/components/match2/wikis/deadlock/get_match_group_copy_paste_wiki.lua b/components/match2/wikis/deadlock/get_match_group_copy_paste_wiki.lua index 831150595e9..07a2a59ba17 100644 --- a/components/match2/wikis/deadlock/get_match_group_copy_paste_wiki.lua +++ b/components/match2/wikis/deadlock/get_match_group_copy_paste_wiki.lua @@ -23,6 +23,7 @@ function WikiCopyPaste.getMatchCode(bestof, mode, index, opponents, args) local lines = Array.extend( '{{Match', + '|bestof=' .. (bestof ~= 0 and bestof or ''), Logic.readBool(args.needsWinner) and INDENT .. '|winner=' or nil, Array.map(Array.range(1, opponents), function(opponentIndex) return INDENT .. '|opponent' .. opponentIndex .. '=' .. WikiCopyPaste.getOpponent(mode, showScore) @@ -32,9 +33,7 @@ function WikiCopyPaste.getMatchCode(bestof, mode, index, opponents, args) INDENT .. '|finished=', INDENT .. '|twitch=|youtube=' } or nil, - Array.map(Array.range(1, bestof), function(mapIndex) - return WikiCopyPaste._getMapCode(mapIndex) - end), + Array.map(Array.range(1, bestof), WikiCopyPaste._getMapCode), '}}' ) diff --git a/components/match2/wikis/deadlock/match_summary.lua b/components/match2/wikis/deadlock/match_summary.lua index 8e91258268e..978f5870115 100644 --- a/components/match2/wikis/deadlock/match_summary.lua +++ b/components/match2/wikis/deadlock/match_summary.lua @@ -34,13 +34,6 @@ function CustomMatchSummary.getByMatchId(args) return MatchSummary.defaultGetByMatchId(CustomMatchSummary, args, {width = '400px', teamStyle = 'bracket'}) end ----@param match MatchGroupUtilMatch ----@param footer MatchSummaryFooter ----@return MatchSummaryFooter -function CustomMatchSummary.addToFooter(match, footer) - return MatchSummary.addVodsToFooter(match, footer) -end - ---@param match MatchGroupUtilMatch ---@return MatchSummaryBody function CustomMatchSummary.createBody(match)