From 251c2519e68ee1bc9b0a68c30186cb5e4d42abb4 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:46:11 +0700 Subject: [PATCH] Adjust generator --- .../wikis/marvelrivals/get_match_group_copy_paste_wiki.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/match2/wikis/marvelrivals/get_match_group_copy_paste_wiki.lua b/components/match2/wikis/marvelrivals/get_match_group_copy_paste_wiki.lua index 6b3da54a08..b39ab54ad3 100644 --- a/components/match2/wikis/marvelrivals/get_match_group_copy_paste_wiki.lua +++ b/components/match2/wikis/marvelrivals/get_match_group_copy_paste_wiki.lua @@ -31,7 +31,6 @@ function WikiCopyPaste.getMatchCode(bestof, mode, index, opponents, args) local lines = Array.extendWith({}, '{{Match', - index == 1 and (INDENT .. '|bestof=' .. (bestof ~= 0 and bestof or '')) or nil, Logic.readBool(args.needsWinner) and (INDENT .. '|winner=') or nil, INDENT .. '|date=', Logic.readBool(args.streams) and (INDENT .. '|twitch=|youtube=|vod=') or nil, @@ -39,7 +38,7 @@ function WikiCopyPaste.getMatchCode(bestof, mode, index, opponents, args) return INDENT .. '|opponent' .. opponentIndex .. '=' .. opponent end), bestof ~= 0 and Array.map(Array.range(1, bestof), function(mapIndex) - return INDENT .. '|map' .. mapIndex .. '={{Map|map=|mode=|score1=|score2=|winner=}}' + return INDENT .. '|map' .. mapIndex .. '={{Map|map=|score1=|score2=|winner=}}' end) or nil, INDENT .. '}}' )