Preload data when using Dex.forFormat

This supposedly fixes a bug where old-gen randbats were generating
invalid teams.
This commit is contained in:
Guangcong Luo 2019-11-17 05:25:06 +13:00
parent f498a03da6
commit 43ef4d9785

View File

@ -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) {