From 4d23f872e589b72aade6aa4b028885367666c9d2 Mon Sep 17 00:00:00 2001 From: Rikard Blixt Date: Thu, 10 Oct 2024 09:35:20 +0200 Subject: [PATCH] do tft --- .../match2/wikis/tft/match_group_input_custom.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/match2/wikis/tft/match_group_input_custom.lua b/components/match2/wikis/tft/match_group_input_custom.lua index 10785349194..6bac018dbc6 100644 --- a/components/match2/wikis/tft/match_group_input_custom.lua +++ b/components/match2/wikis/tft/match_group_input_custom.lua @@ -62,7 +62,8 @@ function CustomMatchGroupInput.processMatch(match, options) MatchGroupInputUtil.setPlacement(opponents, match.winner, 1, 2, match.resulttype) end - MatchFunctions.getTournamentVars(match) + Table.mergeInto(match, MatchGroupInputUtil.getTournamentContext(match)) + match.mode = Variables.varDefault('tournament_mode', DEFAULT_MODE) match.stream = Streams.processStreams(match) match.links = MatchFunctions.getLinks(match) @@ -75,13 +76,6 @@ function CustomMatchGroupInput.processMatch(match, options) return match end ----@param match table ----@return table -function MatchFunctions.getTournamentVars(match) - match.mode = Variables.varDefault('tournament_mode', DEFAULT_MODE) - return MatchGroupInputUtil.getCommonTournamentVars(match) -end - ---@param match table ---@return table function MatchFunctions.getLinks(match)