diff --git a/data/rulesets.ts b/data/rulesets.ts index 423945dd960d..4196b578d0ec 100644 --- a/data/rulesets.ts +++ b/data/rulesets.ts @@ -1883,7 +1883,7 @@ export const Rulesets: import('../sim/dex-formats').FormatDataTable = { } }, onTeamPreview() { - this.showOpenTeamSheets(this.rated === true); + this.showOpenTeamSheets(); }, }, aaarestrictedabilities: { diff --git a/sim/battle-stream.ts b/sim/battle-stream.ts index ed179f94204a..aa8c5ec27993 100644 --- a/sim/battle-stream.ts +++ b/sim/battle-stream.ts @@ -225,7 +225,7 @@ export class BattleStream extends Streams.ObjectReadWriteStream { this.push(`requesteddata\n${team}`); break; case 'show-openteamsheets': - this.battle!.showOpenTeamSheets(this.battle!.rated === true); + this.battle!.showOpenTeamSheets(); break; case 'version': case 'version-origin': diff --git a/sim/battle.ts b/sim/battle.ts index 87988306ca19..dba8f006b52c 100644 --- a/sim/battle.ts +++ b/sim/battle.ts @@ -3017,7 +3017,7 @@ export class Battle { return team as PokemonSet[]; } - showOpenTeamSheets(hideFromSpectators = false) { + showOpenTeamSheets() { if (this.turn !== 0) return; for (const side of this.sides) { const team = side.pokemon.map(pokemon => { @@ -3054,13 +3054,8 @@ export class Battle { } return newSet; }); - if (hideFromSpectators) { - for (const s of this.sides) { - this.addSplit(s.id, ['showteam', side.id, Teams.pack(team)]); - } - } else { - this.add('showteam', side.id, Teams.pack(team)); - } + + this.add('showteam', side.id, Teams.pack(team)); } }