Update pokemon.h

This commit is contained in:
Kermalis 2024-11-15 16:54:26 -05:00
parent e8ae8d8b73
commit d7fbd95975

View File

@ -102,12 +102,12 @@ extern s32 sub_808D580(s32 *);
static inline bool8 PokemonFlag1(PokemonStruct1 *mon)
{
return (mon->unk0 & FLAG_UNK_1);
return (mon->unk0 >> (FLAG_UNK_1 - 1)) & 1;
}
static inline bool8 PokemonFlag2(PokemonStruct1 *mon)
{
return ((mon->unk0 >> (FLAG_ON_TEAM - 1)) & 1);
return (mon->unk0 >> (FLAG_ON_TEAM - 1)) & 1;
}
static inline void SetPokemonFlag2(PokemonStruct1 *mon)