mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-28 20:14:37 -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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user