Use GET_UNOWN_LETTER macro
This commit is contained in:
@@ -2722,7 +2722,7 @@ void SpriteCB_FaintOpponentMon(struct Sprite *sprite)
|
||||
if (species == SPECIES_UNOWN)
|
||||
{
|
||||
u32 personalityValue = GetMonData(&gEnemyParty[gBattlerPartyIndexes[battler]], MON_DATA_PERSONALITY);
|
||||
u16 unownForm = ((((personalityValue & 0x3000000) >> 18) | ((personalityValue & 0x30000) >> 12) | ((personalityValue & 0x300) >> 6) | (personalityValue & 3)) % 0x1C);
|
||||
u16 unownForm = GET_UNOWN_LETTER(personalityValue);
|
||||
u16 unownSpecies;
|
||||
|
||||
if (unownForm == 0)
|
||||
|
||||
Reference in New Issue
Block a user