From 9444f4fc29cba888da408d0545bd1882232b6fc9 Mon Sep 17 00:00:00 2001 From: Rikard Blixt Date: Mon, 7 Oct 2024 21:15:04 +0200 Subject: [PATCH] fixes --- .../wikis/mobilelegends/match_group_input_custom.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/match2/wikis/mobilelegends/match_group_input_custom.lua b/components/match2/wikis/mobilelegends/match_group_input_custom.lua index 77d063dad76..0328a063eed 100644 --- a/components/match2/wikis/mobilelegends/match_group_input_custom.lua +++ b/components/match2/wikis/mobilelegends/match_group_input_custom.lua @@ -1,6 +1,6 @@ --- -- @Liquipedia --- wiki=brawlstars +-- wiki=mobilelegends -- page=Module:MatchGroup/Input/Custom -- -- Please see https://github.com/Liquipedia/Lua-Modules to contribute @@ -15,7 +15,7 @@ local String = require('Module:StringUtils') local Table = require('Module:Table') local Variables = require('Module:Variables') local Streams = require('Module:Links/Stream') -local BrawlerNames = mw.loadData('Module:BrawlerNames') +local ChampionNames = mw.loadData('Module:HeroNames') local MatchGroupInputUtil = Lua.import('Module:MatchGroup/Input/Util') @@ -167,7 +167,7 @@ function MapFunctions.getExtraData(map, opponentCount) team2side = string.lower(map.team2side or ''), } - local getCharacterName = FnUtil.curry(MatchGroupInputUtil.getCharacterName, BrawlerNames) + local getCharacterName = FnUtil.curry(MatchGroupInputUtil.getCharacterName, ChampionNames) for opponentIndex = 1, opponentCount do for idx, ban in Table.iter.pairsByPrefix(map, 't' .. opponentIndex .. 'b') do extradata['team' .. opponentIndex .. 'bans' .. idx] = getCharacterName(ban) @@ -185,7 +185,7 @@ end ---@return table function MapFunctions.getParticipants(map, opponents) local allParticipants = {} - local getCharacterName = FnUtil.curry(MatchGroupInputUtil.getCharacterName, BrawlerNames) + local getCharacterName = FnUtil.curry(MatchGroupInputUtil.getCharacterName, ChampionNames) Array.forEach(opponents, function(opponent, opponentIndex) local players = Array.mapIndexes(function(playerIndex) return opponent.match2players[playerIndex] or Logic.nilIfEmpty(map['t' .. opponentIndex .. 'h' .. playerIndex])