Fix faint cry using wrong form index
This commit is contained in:
parent
bb4f35095d
commit
52039849ac
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue