Skip to content

Commit

Permalink
Fix LC Draft teambuilder (smogon#2132)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored Jul 28, 2023
1 parent 399aee9 commit a47383b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/battle-dex-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,11 @@ abstract class BattleTypedSearch<T extends SearchType> {
this.formatType = 'nfe';
if (!format) format = 'ou' as ID;
}
if ((format.endsWith('lc') || format.startsWith('lc')) && format !== 'caplc') {
if ((format.endsWith('lc') || format.startsWith('lc')) && format !== 'caplc' && !this.formatType) {
this.formatType = 'lc';
format = 'lc' as ID;
}
if (format.endsWith('draft')) format = format.slice(0, -5) as ID;
this.format = format;

this.species = '' as ID;
Expand Down

0 comments on commit a47383b

Please sign in to comment.