diff --git a/components/match2/wikis/crossfire/match_group_input_custom.lua b/components/match2/wikis/crossfire/match_group_input_custom.lua index 43fb5113b9d..fef0aecc0c3 100644 --- a/components/match2/wikis/crossfire/match_group_input_custom.lua +++ b/components/match2/wikis/crossfire/match_group_input_custom.lua @@ -286,7 +286,8 @@ end function matchFunctions.getExtraData(match) match.extradata = { - mvp = MatchGroupInput.readMvp(match) + mvp = MatchGroupInput.readMvp(match), + casters = MatchGroupInput.readCasters(match, {noSort = true}) } return match end diff --git a/components/match2/wikis/crossfire/match_summary.lua b/components/match2/wikis/crossfire/match_summary.lua index 42a6ecaadf9..0d8a5c9e395 100644 --- a/components/match2/wikis/crossfire/match_summary.lua +++ b/components/match2/wikis/crossfire/match_summary.lua @@ -8,6 +8,7 @@ local DateExt = require('Module:Date/Ext') local Icon = require('Module:Icon') +local Json = require('Module:Json') local Logic = require('Module:Logic') local Lua = require('Module:Lua') local MapModes = require('Module:MapModes') @@ -79,6 +80,17 @@ function CustomMatchSummary.createBody(match) end + -- casters + if String.isNotEmpty(match.extradata.casters) then + local casters = Json.parseIfString(match.extradata.casters) + local casterRow = MatchSummary.Casters() + for _, caster in pairs(casters) do + casterRow:addCaster(caster) + end + + body:addRow(casterRow) + end + return body end