Skip first shake check for critical captures

This commit is contained in:
AJ Fontaine 2024-11-04 13:35:36 -05:00
parent d245a0e214
commit 3b2fb87917

View File

@ -122,8 +122,8 @@ export class AttemptCapturePhase extends PokemonPhase {
shakeCounter.stop();
this.failCatch(shakeCount);
} else if (shakeCount++ < (isCritical ? 1 : 3)) {
// Shake check
if (pokeballMultiplier === -1 || pokemon.randSeedInt(65536) < shakeProbability) {
// Shake check (skip the first for critical captures)
if (pokeballMultiplier === -1 || isCritical && shakeCount === 1 || pokemon.randSeedInt(65536) < shakeProbability) {
this.scene.playSound("se/pb_move");
} else {
shakeCounter.stop();