Fix faint cry using wrong form index

pull/2/head
Flashfyre 2023-11-05 22:32:08 -05:00
parent bb4f35095d
commit 52039849ac
1 changed files with 1 additions and 1 deletions

View File

@ -986,7 +986,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (this.fusionSpecies) if (this.fusionSpecies)
return this.fusionFaintCry(callback); return this.fusionFaintCry(callback);
const key = this.getSpeciesForm().getCryKey(); const key = this.getSpeciesForm().getCryKey(this.formIndex);
let i = 0; let i = 0;
let rate = 0.85; let rate = 0.85;
const cry = this.scene.playSound(key, { rate: rate }) as AnySound; const cry = this.scene.playSound(key, { rate: rate }) as AnySound;