Skip to content

Commit

Permalink
Fix level setting for LC variants (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored Sep 1, 2023
1 parent 2451f24 commit 4e596e9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/client-teambuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3026,6 +3026,10 @@
if (baseFormat.substr(0, 3) === 'gen') baseFormat = baseFormat.substr(4);
if (baseFormat.substr(0, 4) === 'bdsp') baseFormat = baseFormat.substr(4);
if (baseFormat.substr(0, 8) === 'pokebank') baseFormat = baseFormat.substr(8);
if (baseFormat.substr(0, 6) === 'natdex') baseFormat = baseFormat.substr(6);
if (baseFormat.substr(0, 11) === 'nationaldex') baseFormat = baseFormat.substr(11);
if (baseFormat.substr(-5) === 'draft') baseFormat = baseFormat.substr(0, baseFormat.length - 5);
if (!baseFormat) baseFormat = 'ou';
if (this.curTeam && this.curTeam.format) {
if (baseFormat === 'battlespotsingles' || baseFormat === 'battlespotdoubles' || baseFormat.substr(0, 3) === 'vgc' ||
baseFormat === 'battlefestivaldoubles') {
Expand Down Expand Up @@ -3057,6 +3061,10 @@
if (baseFormat.substr(0, 3) === 'gen') baseFormat = baseFormat.substr(4);
if (baseFormat.substr(0, 4) === 'bdsp') baseFormat = baseFormat.substr(4);
if (baseFormat.substr(0, 8) === 'pokebank') baseFormat = baseFormat.substr(8);
if (baseFormat.substr(0, 6) === 'natdex') baseFormat = baseFormat.substr(6);
if (baseFormat.substr(0, 11) === 'nationaldex') baseFormat = baseFormat.substr(11);
if (baseFormat.substr(-5) === 'draft') baseFormat = baseFormat.substr(0, baseFormat.length - 5);
if (!baseFormat) baseFormat = 'ou';
if (this.curTeam && this.curTeam.format) {
if (baseFormat === 'battlespotsingles' || baseFormat === 'battlespotdoubles' || baseFormat.substr(0, 3) === 'vgc' ||
baseFormat === 'battlefestivaldoubles') {
Expand Down Expand Up @@ -3272,6 +3280,10 @@
if (baseFormat.substr(0, 3) === 'gen') baseFormat = baseFormat.substr(4);
if (baseFormat.substr(0, 4) === 'bdsp') baseFormat = baseFormat.substr(4);
if (baseFormat.substr(0, 8) === 'pokebank') baseFormat = baseFormat.substr(8);
if (baseFormat.substr(0, 6) === 'natdex') baseFormat = baseFormat.substr(6);
if (baseFormat.substr(0, 11) === 'nationaldex') baseFormat = baseFormat.substr(11);
if (baseFormat.substr(-5) === 'draft') baseFormat = baseFormat.substr(0, baseFormat.length - 5);
if (!baseFormat) baseFormat = 'ou';
if (this.curTeam && this.curTeam.format) {
if (baseFormat.substr(0, 10) === 'battlespot' && baseFormat.substr(0, 19) !== 'battlespotspecial13' ||
baseFormat.substr(0, 3) === 'vgc' || baseFormat.substr(0, 14) === 'battlefestival') set.level = 50;
Expand Down

0 comments on commit 4e596e9

Please sign in to comment.