Skip to content

Commit

Permalink
Fix LC teambuilder level setting
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV committed Aug 16, 2023
1 parent e229e89 commit 94d7876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/client-teambuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3062,7 +3062,7 @@
baseFormat === 'battlefestivaldoubles') {
set.level = 50;
}
if (baseFormat.substr(0, 2) === 'lc') set.level = 5;
if (baseFormat.startsWith('lc') || baseFormat.endsWith('lc')) set.level = 5;
}
if (set.happiness) delete set.happiness;
if (set.shiny) delete set.shiny;
Expand Down Expand Up @@ -3275,7 +3275,7 @@
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;
if (baseFormat.substr(0, 2) === 'lc' || baseFormat.substr(0, 5) === 'caplc' || baseFormat.substr(-2) === 'lc') set.level = 5;
if (baseFormat.startsWith('lc') || baseFormat.endsWith('lc')) set.level = 5;
if (baseFormat.substr(0, 19) === 'battlespotspecial17') set.level = 1;
if (format && format.teambuilderLevel) {
set.level = format.teambuilderLevel;
Expand Down

0 comments on commit 94d7876

Please sign in to comment.