Change HasTwoFramesAnimation to take into account species with 1 frame (#6655)

Co-authored-by: Hedara <hedara90@gmail.com>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
hedara90 2025-04-21 11:09:20 +02:00 committed by GitHub
parent db7e45f1d6
commit 7d4de15d9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6334,7 +6334,10 @@ void HandleSetPokedexFlag(u16 nationalNum, u8 caseId, u32 personality)
bool8 HasTwoFramesAnimation(u16 species)
{
return P_TWO_FRAME_FRONT_SPRITES && species != SPECIES_UNOWN && !gTestRunnerHeadless;
return P_TWO_FRAME_FRONT_SPRITES
&& gSpeciesInfo[species].frontAnimFrames != sAnims_SingleFramePlaceHolder
&& species != SPECIES_UNOWN
&& !gTestRunnerHeadless;
}
static bool8 ShouldSkipFriendshipChange(void)