mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Remove illegal Pokemon from Draft teambuilder
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
This commit is contained in:
parent
0f9534d45e
commit
8387410adc
|
|
@ -706,7 +706,10 @@ abstract class BattleTypedSearch<T extends SearchType> {
|
|||
this.formatType = 'lc';
|
||||
format = 'lc' as ID;
|
||||
}
|
||||
if (format.endsWith('draft')) format = format.slice(0, -5) as ID;
|
||||
if (format.endsWith('draft')) {
|
||||
format = format.slice(0, -5) as ID;
|
||||
if (!format) format = 'anythinggoes' as ID;
|
||||
}
|
||||
this.format = format;
|
||||
|
||||
this.species = '' as ID;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user