Cries are pitched down when at low HP

This commit is contained in:
Flashfyre 2024-03-29 14:42:27 -04:00
parent baaa00656e
commit 34f748f331
1 changed files with 2 additions and 2 deletions

View File

@ -1148,7 +1148,7 @@ export class SummonPhase extends PartyMemberPokemonPhase {
ease: 'Sine.easeIn',
scale: pokemon.getSpriteScale(),
onComplete: () => {
pokemon.cry();
pokemon.cry(pokemon.getHpRatio() > 0.25 ? undefined : { rate: 0.85 });
pokemon.getSprite().clearTint();
pokemon.resetSummonData();
this.scene.time.delayedCall(1000, () => this.end());
@ -3736,7 +3736,7 @@ export class AttemptCapturePhase extends PokemonPhase {
this.scene.playSound('pb_rel');
pokemon.setY(this.originalY);
pokemon.cry();
pokemon.cry(pokemon.getHpRatio() > 0.25 ? undefined : { rate: 0.85 });
pokemon.tint(getPokeballTintColor(this.pokeballType));
pokemon.setVisible(true);
pokemon.untint(250, 'Sine.easeOut');