Fix faint cry using wrong form index

This commit is contained in:
Flashfyre committed 2023-11-05 22:32:08 -05:00
1 parent bb4f35095d
commit 52039849ac
1 file changed
+1 -1
+1 -1
View File
@@ -986,7 +986,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (this.fusionSpecies)
return this.fusionFaintCry(callback);
const key = this.getSpeciesForm().getCryKey();
const key = this.getSpeciesForm().getCryKey(this.formIndex);
let i = 0;
let rate = 0.85;
const cry = this.scene.playSound(key, { rate: rate }) as AnySound;