Skip to content

Commit 3825d25

Browse files
committed
fix
1 parent 02655a6 commit 3825d25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

play.pokemonshowdown.com/js/client-teambuilder.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,6 +3159,8 @@
31593159
set.species = 'Trevenant';
31603160
delete set.level;
31613161
var baseFormat = this.curTeam.format;
3162+
console.log('baseformat');
3163+
console.log(baseFormat);
31623164
if (baseFormat.substr(0, 3) === 'gen') baseFormat = baseFormat.substr(4);
31633165
if (baseFormat.substr(0, 4) === 'bdsp') baseFormat = baseFormat.substr(4);
31643166
if (baseFormat.substr(0, 8) === 'pokebank') baseFormat = baseFormat.substr(8);

play.pokemonshowdown.com/js/client.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,10 +1386,8 @@ function toId() {
13861386
}
13871387
if (teambuilderFormatName !== name) {
13881388
teambuilderFormat = toID(teambuilderFormatName);
1389-
if (!teambuilderFormat.startsWith('gen9rebalanced')) {
1390-
if (teambuilderFormat.startsWith('gen8nd')) teambuilderFormat = 'gen8nationaldex' + teambuilderFormat.slice(6);
1391-
if (teambuilderFormat.startsWith('gen8natdex')) teambuilderFormat = 'gen8nationaldex' + teambuilderFormat.slice(10);
1392-
}
1389+
if (teambuilderFormat.startsWith('gen8nd')) teambuilderFormat = 'gen8nationaldex' + teambuilderFormat.slice(6);
1390+
if (teambuilderFormat.startsWith('gen8natdex')) teambuilderFormat = 'gen8nationaldex' + teambuilderFormat.slice(10);
13931391
if (BattleFormats[teambuilderFormat]) {
13941392
BattleFormats[teambuilderFormat].isTeambuilderFormat = true;
13951393
} else {

0 commit comments

Comments
 (0)