Teambuilder: Use doubles tiers for Partners in Crime (#2039)

This commit is contained in:
Hisuian Zoroark
2022-12-04 14:10:36 -05:00
committed by GitHub
parent dc272cf195
commit fbc99f55fe

View File

@@ -607,6 +607,7 @@ abstract class BattleTypedSearch<T extends SearchType> {
this.dex = Dex.mod('gen8bdsp' as ID);
}
if (format.includes('doubles') && this.dex.gen > 4 && !this.formatType) this.formatType = 'doubles';
if (format === 'partnersincrime') this.formatType = 'doubles';
if (format.startsWith('ffa') || format === 'freeforall') this.formatType = 'doubles';
if (format.includes('letsgo')) {
this.formatType = 'letsgo';
@@ -891,7 +892,8 @@ class BattlePokemonSearch extends BattleTypedSearch<'pokemon'> {
this.formatType !== 'letsgo' && this.formatType !== 'bdspdoubles' && this.formatType !== 'dlc1doubles' &&
(
format.includes('doubles') || format.includes('triples') ||
format === 'freeforall' || format.startsWith('ffa')
format === 'freeforall' || format.startsWith('ffa') ||
format === 'partnersincrime'
)
) {
table = table['gen' + dex.gen + 'doubles'];