diff --git a/src/pokemon.c b/src/pokemon.c index 77243b4e300..c5162ecfd0b 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -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" @@ -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) diff --git a/src/pokemon_animation.c b/src/pokemon_animation.c index d7c0bb343c5..58aa4fb6431 100644 --- a/src/pokemon_animation.c +++ b/src/pokemon_animation.c @@ -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" @@ -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;