Skip to content

Commit

Permalink
/calc: Add Randoms calc support for Random Doubles (#10477)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari authored Aug 6, 2024
1 parent e7961d4 commit 645aa38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/chat-commands/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,8 @@ export const commands: Chat.ChatCommands = {
const SUPPORTED_BATTLESPOT_FORMATS = [
'gen5gbusingles', 'gen5gbudoubles', 'gen6battlespotsingles', 'gen6battlespotdoubles', 'gen6battlespottriples', 'gen7battlespotsingles', 'gen7battlespotdoubles', 'gen7bssfactory',
];
const isRandomBattle = room?.battle?.format.endsWith('randombattle');
const isRandomBattle = (room?.battle && (room.battle.format.endsWith('randombattle') ||
room.battle.format.endsWith('randomdoublesbattle')));
const isBattleSpotBattle = (room?.battle && (SUPPORTED_BATTLESPOT_FORMATS.includes(room.battle.format) ||
room.battle.format.includes("battlespotspecial")));
const {dex} = this.extractFormat(room?.battle?.format);
Expand Down

0 comments on commit 645aa38

Please sign in to comment.