Skip to content

Commit

Permalink
Fix weather genie move anims and springtide storm targets (#5553)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravepossum authored Oct 22, 2024
1 parent 6de4222 commit afc89f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/battle_anim_flying.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,14 @@ const struct SpriteTemplate gSkyAttackBirdSpriteTemplate =
.callback = AnimSkyAttackBird,
};

// same as AnimEllipticalGust but centered on targets
// same as AnimEllipticalGust but centered on targets in a double battle
static void AnimEllipticalGustCentered(struct Sprite *sprite)
{
InitSpritePosToAnimTargetsCentre(sprite, FALSE);
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
InitSpritePosToAnimTargetsCentre(sprite, FALSE);
else
InitSpritePosToAnimTarget(sprite, FALSE);

sprite->y += 20;
sprite->data[1] = 191;
sprite->callback = AnimEllipticalGust_Step;
Expand Down
2 changes: 1 addition & 1 deletion src/data/moves_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -18800,7 +18800,7 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
.type = TYPE_FAIRY,
.accuracy = 80,
.pp = 5,
.target = MOVE_TARGET_SELECTED,
.target = MOVE_TARGET_BOTH,
.priority = 0,
.category = DAMAGE_CATEGORY_SPECIAL,
.windMove = TRUE,
Expand Down

0 comments on commit afc89f5

Please sign in to comment.