diff --git a/build-tools/build-indexes b/build-tools/build-indexes index bd9cf2d51..fb2f7451f 100755 --- a/build-tools/build-indexes +++ b/build-tools/build-indexes @@ -315,7 +315,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... "); banlist.includes(template.species + '-Base') || banlist.includes(template.baseSpecies) || ['Zygarde-Complete', 'Necrozma-Ultra'].includes(template.species) - ) { + ) { tier = 'Uber'; return tier; } else if (tier === 'Uber') { // This check is for Pokemon tiered as Uber but aren't in the banlist for National Dex diff --git a/src/battle-text-parser.ts b/src/battle-text-parser.ts index 9db9c1d4e..97731786a 100644 --- a/src/battle-text-parser.ts +++ b/src/battle-text-parser.ts @@ -263,12 +263,12 @@ class BattleTextParser { } party(side: string) { - side = side.slice(0, 2); - if (side === (this.perspective === 0 ? 'p1' : 'p2')) { - return BattleText.default.party; - } - return BattleText.default.opposingParty; - } + side = side.slice(0, 2); + if (side === (this.perspective === 0 ? 'p1' : 'p2')) { + return BattleText.default.party; + } + return BattleText.default.opposingParty; + } static effectId(effect?: string) { if (!effect) return '';