mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
Skip first shake check for critical captures
This commit is contained in:
parent
d245a0e214
commit
3b2fb87917
@ -122,8 +122,8 @@ export class AttemptCapturePhase extends PokemonPhase {
|
|||||||
shakeCounter.stop();
|
shakeCounter.stop();
|
||||||
this.failCatch(shakeCount);
|
this.failCatch(shakeCount);
|
||||||
} else if (shakeCount++ < (isCritical ? 1 : 3)) {
|
} else if (shakeCount++ < (isCritical ? 1 : 3)) {
|
||||||
// Shake check
|
// Shake check (skip the first for critical captures)
|
||||||
if (pokeballMultiplier === -1 || pokemon.randSeedInt(65536) < shakeProbability) {
|
if (pokeballMultiplier === -1 || isCritical && shakeCount === 1 || pokemon.randSeedInt(65536) < shakeProbability) {
|
||||||
this.scene.playSound("se/pb_move");
|
this.scene.playSound("se/pb_move");
|
||||||
} else {
|
} else {
|
||||||
shakeCounter.stop();
|
shakeCounter.stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user