Adjust crit capture animation

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
AJ Fontaine 2024-11-06 15:02:05 -05:00 committed by GitHub
parent 2a06d6dce5
commit d5fa81b8ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,8 +112,8 @@ export function doPokeballBounceAnim(scene: BattleScene, pokeball: Phaser.GameOb
let bounceY = y2;
const yd = y2 - y1;
const x0 = pokeball.x;
const x1 = x0 + 4;
const x2 = x0 - 4;
const x1 = x0 + 3;
const x2 = x0 - 3;
let critShakes = 4;
const doBounce = () => {
@ -167,7 +167,7 @@ export function doPokeballBounceAnim(scene: BattleScene, pokeball: Phaser.GameOb
x: x0,
duration: 60,
ease: "Linear",
onComplete: () => doBounce()
onComplete: () => scene.time.delayedCall(500, doBounce)
});
}
}