From 7d2b053b3eb6bb13ddcabd13f0b0b44970bf38a8 Mon Sep 17 00:00:00 2001 From: PrabbyDD Date: Mon, 23 Sep 2024 14:39:26 -0700 Subject: [PATCH] fixing form issues generating tms pokemon shouldnt have --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 7734f8adec2..753a139d60f 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -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; }