Skip to content

Commit 3b974a4

Browse files
authored
Ladder: Move tighter search restrictions to latest gen (#10210)
1 parent e62fa2d commit 3b974a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/ladders.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ class Ladder extends LadderStore {
361361
let searchRange = 100;
362362
const times = matches.map(([search]) => search.time);
363363
const elapsed = Date.now() - Math.min(...times);
364-
if (formatid === 'gen8ou' || formatid === 'gen8oucurrent' ||
365-
formatid === 'gen8oususpecttest' || formatid === 'gen8randombattle') {
364+
if (formatid === `gen${Dex.gen}ou` || formatid === `gen${Dex.gen}randombattle`) {
366365
searchRange = 50;
367366
}
368367

0 commit comments

Comments
 (0)