Skip to content

feat(match2): add Global Bans to brawlstars#7679

Open
knxd3r wants to merge 6 commits into
Liquipedia:mainfrom
knxd3r:patch-2
Open

feat(match2): add Global Bans to brawlstars#7679
knxd3r wants to merge 6 commits into
Liquipedia:mainfrom
knxd3r:patch-2

Conversation

@knxd3r

@knxd3r knxd3r commented Jun 19, 2026

Copy link
Copy Markdown

Adding global bans

Summary

image Discord request https://discord.com/channels/93055209017729024/1209065403955806270/1516148399274196993

How did you test this change?

dev
https://liquipedia.net/brawlstars/User:Knoxider/ME_Gaming/49

Adding global bans
@knxd3r knxd3r requested review from a team as code owners June 19, 2026 21:03
Comment thread lua/wikis/brawlstars/MatchSummary.lua Outdated
Comment thread lua/wikis/brawlstars/MatchSummary.lua
Comment thread lua/wikis/brawlstars/MatchSummary.lua Outdated
Comment thread lua/wikis/brawlstars/MatchSummary.lua Outdated
Comment thread lua/wikis/brawlstars/MatchSummary.lua Outdated
Comment thread lua/wikis/brawlstars/MatchSummary.lua Outdated
Comment thread lua/wikis/brawlstars/MatchSummary.lua
Comment thread lua/wikis/brawlstars/MatchSummary.lua Outdated
knxd3r and others added 4 commits June 20, 2026 13:42
Comment thread lua/wikis/brawlstars/MatchGroup/Input/Custom.lua Outdated
Comment thread lua/wikis/commons/Widget/Match/Summary/CharacterBanTable.lua Outdated
Co-authored-by: hjpalpha <75081997+hjpalpha@users.noreply.github.com>
@PolandBot

Copy link
Copy Markdown
Contributor
image Can you also please move MVP like on photo?

@ElectricalBoy ElectricalBoy changed the title feat(MatchSummary): add Global Bans to brawlstars feat(match2): add Global Bans to brawlstars Jun 22, 2026

@PolandBot PolandBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanna change order a bit

Comment thread lua/wikis/brawlstars/MatchSummary.lua

@ElectricalBoy ElectricalBoy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should check compat with other wikis that use CharacterBanTable
(I don't think there's going to be an issue, but still better safe than sorry)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for displaying global bans in Brawl Stars match summaries by extending the bans data model to allow custom row labels and by parsing match-level ban inputs into match extradata.

Changes:

  • Extended the shared CharacterBanTable widget to support an optional per-row label.
  • Updated Brawl Stars MatchSummary to prepend a “Global Bans” row (when present) and to label per-game bans rows using the actual game index.
  • Updated Brawl Stars match input parsing to read match-level bans into match.extradata.globalbans and refactored per-map bans parsing to reuse a helper.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
lua/wikis/commons/Widget/Match/Summary/CharacterBanTable.lua Adds optional label support for bans rows so callers can control the displayed row title.
lua/wikis/brawlstars/MatchSummary.lua Builds bans rows including an optional “Global Bans” entry and switches to Module:Widget/Html directly.
lua/wikis/brawlstars/MatchGroup/Input/Custom.lua Parses match-level bans into globalbans and refactors bans parsing into a shared helper used for map extradata too.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 104 to 108
return {
mapveto = MatchGroupInputUtil.getMapVeto(match),
mvp = MatchGroupInputUtil.readMvp(match, opponents),
globalbans = getBans(match, #opponents),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants