diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-12-30 21:21:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 21:21:12 -0500 |
commit | 0c74e2097ffbe8395d6f3659c2a49fc829d69b99 (patch) | |
tree | f29b9035d2fe9bb999de48a3c548137800617833 /src/pokeball.c | |
parent | e1fd2f2a89e4a84c6a69a90ac54263999d3c275b (diff) | |
parent | b88922daea18aa192e1712d6fb170487ddc014b5 (diff) |
Merge pull request #1282 from Sierraffinity/master
Change how mon affine transform fix is handled
Diffstat (limited to 'src/pokeball.c')
-rw-r--r-- | src/pokeball.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pokeball.c b/src/pokeball.c index 92081a296..916c86287 100644 --- a/src/pokeball.c +++ b/src/pokeball.c @@ -1133,6 +1133,11 @@ static void sub_80767D4(struct Sprite *sprite) AnimateBallOpenParticlesForPokeball(sprite->pos1.x, sprite->pos1.y - 5, sprite->oam.priority, r6); sprite->data[1] = LaunchBallFadeMonTaskForPokeball(1, r8, r5); sprite->callback = sub_807687C; +#ifdef BUGFIX + // FIX: If this is used on a sprite that has previously had an affine animation, it will not + // play the shrink anim properly due to being paused. Works together with the fix to `sub_817F77C`. + gSprites[r7].affineAnimPaused = FALSE; +#endif // BUGFIX StartSpriteAffineAnim(&gSprites[r7], 2); AnimateSprite(&gSprites[r7]); gSprites[r7].data[1] = 0; |