From ff9beaad20c8161a311dd288688fa4c5d4ff4220 Mon Sep 17 00:00:00 2001 From: Rezzo Date: Thu, 16 Nov 2023 15:28:21 +0000 Subject: [PATCH] remove manual hoenn gaiden check --- src/battle-dex-search.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/battle-dex-search.ts b/src/battle-dex-search.ts index fbcd27f2b..1d1471767 100644 --- a/src/battle-dex-search.ts +++ b/src/battle-dex-search.ts @@ -1668,8 +1668,6 @@ class BattleMoveSearch extends BattleTypedSearch<'move'> { const regionBornLegality = dex.gen >= 6 && (/^battle(spot|stadium|festival)/.test(format) || format.startsWith('vgc') || (dex.gen === 9 && this.formatType !== 'natdex')); - // Hoenn Gaiden Baton Pass Gaiden Declaration - const isHoennGaiden = this.modFormat.endsWith('hoenngaiden'); let hasOwnUsefulCheck = false; switch(typeof window.ModConfig[this.mod]?.moveIsNotUseless){ @@ -1742,10 +1740,6 @@ class BattleMoveSearch extends BattleTypedSearch<'move'> { 'hiddenpowerbug', 'hiddenpowerdark', 'hiddenpowerdragon', 'hiddenpowerelectric', 'hiddenpowerfighting', 'hiddenpowerfire', 'hiddenpowerflying', 'hiddenpowerghost', 'hiddenpowergrass', 'hiddenpowerground', 'hiddenpowerice', 'hiddenpowerpoison', 'hiddenpowerpsychic', 'hiddenpowerrock', 'hiddenpowersteel', 'hiddenpowerwater' ); } - if (isHoennGaiden && moveid === 'batonpass') { - moves.push('batonpassgaiden'); - moves.splice(moves.indexOf('batonpass'), 1); - } } } learnsetid = this.nextLearnsetid(learnsetid, species.id);