Update src/field/pokemon.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Lylian BALL 2025-04-11 18:28:43 +02:00 committed by GitHub
parent 28492e851d
commit 4377aec7d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1136,7 +1136,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
fusionFormIndex >= fusionSpecies?.forms.length
) {
//@ts-ignore
return fusionSpecies; // TODO: I don't even know how to fix this... A complete cluster of classes involved + null
return fusionSpecies;
}
return fusionSpecies?.forms[fusionFormIndex];
}