Skip to content

Commit

Permalink
Omit mon animations
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo committed Dec 28, 2024
1 parent de6242f commit 56619fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pokemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "string_util.h"
#include "strings.h"
#include "task.h"
#include "test_runner.h"
#include "text.h"
#include "trainer_hill.h"
#include "util.h"
Expand Down Expand Up @@ -6277,7 +6278,7 @@ void HandleSetPokedexFlag(u16 nationalNum, u8 caseId, u32 personality)

bool8 HasTwoFramesAnimation(u16 species)
{
return P_TWO_FRAME_FRONT_SPRITES && species != SPECIES_UNOWN;
return P_TWO_FRAME_FRONT_SPRITES && species != SPECIES_UNOWN && !gTestRunnerHeadless;
}

static bool8 ShouldSkipFriendshipChange(void)
Expand Down
3 changes: 2 additions & 1 deletion src/pokemon_animation.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "pokemon_animation.h"
#include "sprite.h"
#include "task.h"
#include "test_runner.h"
#include "trig.h"
#include "util.h"
#include "data.h"
Expand Down Expand Up @@ -513,7 +514,7 @@ static void Task_HandleMonAnimation(u8 taskId)

gTasks[taskId].tState++;
}
if (sprite->callback == SpriteCallbackDummy)
if (gTestRunnerHeadless || sprite->callback == SpriteCallbackDummy)
{
sprite->data[0] = gTasks[taskId].tBattlerId;
sprite->data[2] = gTasks[taskId].tSpeciesId;
Expand Down

0 comments on commit 56619fe

Please sign in to comment.