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 e8cc148 commit fb98d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/dex-species.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,10 @@ export class DexSpecies {
for (const {species, learnset} of this.getFullLearnset(id)) {
for (const moveid in learnset) {
if (gen4HMMoves.includes(moveid) && this.dex.gen >= 5) {
if (!learnset[moveid].some(source => parseInt(source.charAt(0)) >= 5 &&
if (!learnset[moveid].some(source => parseInt(source.charAt(0)) >= 5 &&
parseInt(source.charAt(0)) <= this.dex.gen)) continue;
} else if (gen3HMMoves.includes(moveid) && this.dex.gen >= 4 &&
!learnset[moveid].some(source => parseInt(source.charAt(0)) >= 4 &&
!learnset[moveid].some(source => parseInt(source.charAt(0)) >= 4 &&
parseInt(source.charAt(0)) <= this.dex.gen)) {
continue;
}
Expand Down

0 comments on commit fb98d87

Please sign in to comment.