Skip to content

Commit

Permalink
Merge pull request #18 from Rezzo64/main
Browse files Browse the repository at this point in the history
remove manual hoenn gaiden check
  • Loading branch information
Rezzo64 authored Nov 16, 2023
2 parents 9357928 + ff9beaa commit 2e12e14
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/battle-dex-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2e12e14

Please sign in to comment.