diff --git a/server/chat-plugins/wifi.tsx b/server/chat-plugins/wifi.tsx index 5b8d3f660f..8d9635f31b 100644 --- a/server/chat-plugins/wifi.tsx +++ b/server/chat-plugins/wifi.tsx @@ -124,7 +124,7 @@ abstract class Giveaway extends Rooms.SimpleRoomGame { constructor( host: User, giver: User, room: Room, ot: string, tid: string, ivs: string[], - prize: PokemonSet, game: Game = 'SV', ball: string, extraInfo: string + prize: PokemonSet, game: Game = 'Z-A', ball: string, extraInfo: string ) { // Make into a sub-game if the gts ever opens up again super(room); @@ -404,7 +404,7 @@ export class QuestionGiveaway extends Giveaway { if (!!ivs && ivs.split('/').length !== 6) { throw new Chat.ErrorMessage(`If you provide IVs, they must be provided for all stats.`); } - if (!game) game = 'SV'; + if (!game) game = 'Z-A'; game = gameidToGame[toID(game)] || game as Game; if (!game || !['SV', 'BDSP', 'SwSh', 'Z-A'].includes(game)) { throw new Chat.ErrorMessage(`The game must be "SV," "BDSP," "SwSh," or "Z-A".`); @@ -602,7 +602,7 @@ export class LotteryGiveaway extends Giveaway { if (!!ivs && ivs.split('/').length !== 6) { throw new Chat.ErrorMessage(`If you provide IVs, they must be provided for all stats.`); } - if (!game) game = 'SV'; + if (!game) game = 'Z-A'; game = gameidToGame[toID(game)] || game as Game; if (!game || !['SV', 'BDSP', 'SwSh', 'Z-A'].includes(game)) { throw new Chat.ErrorMessage(`The game must be "SV," "BDSP," "SwSh," or "Z-A".`); @@ -1614,8 +1614,8 @@ export const pages: Chat.PageTable = { Game: