Skip to content

Commit

Permalink
Update dex-species.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-Comfey committed Oct 3, 2024
1 parent 00a6c0b commit 0fa101c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sim/dex-species.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,12 @@ export class DexSpecies {
const movePool = new Set<ID>();
for (const {species, learnset} of this.getFullLearnset(id)) {
for (const moveid in learnset) {
if (gen4HMMoves.includes(moveid) && this.dex.gen >= 5 &&
!learnset[moveid].some(source => source.startsWith('5'))) continue;
if (gen3HMMoves.includes(moveid) && this.dex.gen >= 4 &&
!learnset[moveid].some(source => source.startsWith('4'))) continue;
if (gen4HMMoves.includes(moveid) && this.dex.gen >= 5) {
if (!learnset[moveid].some(source => source.startsWith('5'))) continue;
} else if (gen3HMMoves.includes(moveid) && this.dex.gen >= 4 &&
!learnset[moveid].some(source => source.startsWith('4'))) {
continue;
}
if (!eggMovesOnly) eggMovesOnly = this.eggMovesOnly(species, this.get(id));
if (eggMovesOnly) {
if (learnset[moveid].some(source => source.startsWith('9E'))) {
Expand Down

0 comments on commit 0fa101c

Please sign in to comment.