mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-27 17:59:28 +02:00
fixing form issues generating tms pokemon shouldnt have
This commit is contained in:
parent
3ef692227d
commit
7d2b053b3e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user