mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-03 00:01:29 -05:00
Teambuilder: Use doubles tiers for Partners in Crime (#2039)
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user