fixing form issues generating tms pokemon shouldnt have

This commit is contained in:
PrabbyDD 2024-09-23 14:39:26 -07:00
parent 3ef692227d
commit 7d2b053b3e

View File

@ -3972,7 +3972,7 @@ export class PlayerPokemon extends Pokemon {
let compatible = false;
for (const p of tmSpecies[tm]) {
if (Array.isArray(p)) {
if (p[0] === this.species.speciesId || (this.fusionSpecies && p[0] === this.fusionSpecies.speciesId) && p.slice(1).indexOf(this.species.forms[this.formIndex]) > -1) {
if ((p[0] === this.species.speciesId || this.fusionSpecies && p[0] === this.fusionSpecies.speciesId) && p.slice(1).indexOf(this.species.forms[this.formIndex]) > -1) {
compatible = true;
break;
}