mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-22 01:35:31 -05:00
Preload data when using Dex.forFormat
This supposedly fixes a bug where old-gen randbats were generating invalid teams.
This commit is contained in:
parent
f498a03da6
commit
43ef4d9785
|
|
@ -222,7 +222,7 @@ export class ModdedDex {
|
|||
forFormat(format: Format | string): ModdedDex {
|
||||
if (!this.modsLoaded) this.includeMods();
|
||||
const mod = this.getFormat(format).mod;
|
||||
return dexes[mod || 'gen7'];
|
||||
return dexes[mod || 'gen7'].includeData();
|
||||
}
|
||||
|
||||
modData(dataType: DataType, id: string) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user