mirror of https://github.com/pret/pokeemerald.git
personality in Cmd_trysetcaughtmondexflags
parent
3ba229657d
commit
cb55e4d9c1
|
@ -768,8 +768,9 @@ index b22577455..b8605454e 100644
|
|||
static void Cmd_trysetcaughtmondexflags(void)
|
||||
{
|
||||
- u16 species = GetMonData(&gEnemyParty[0], MON_DATA_SPECIES, NULL);
|
||||
- u32 personality = GetMonData(&gEnemyParty[0], MON_DATA_PERSONALITY, NULL);
|
||||
+ u16 species = GetMonData(&gEnemyParty[gBattlerPartyIndexes[BATTLE_OPPOSITE(gBattlerAttacker)]], MON_DATA_SPECIES, NULL);
|
||||
u32 personality = GetMonData(&gEnemyParty[0], MON_DATA_PERSONALITY, NULL);
|
||||
+ u32 personality = GetMonData(&gEnemyParty[gBattlerPartyIndexes[BATTLE_OPPOSITE(gBattlerAttacker)]], MON_DATA_PERSONALITY, NULL);
|
||||
|
||||
if (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), FLAG_GET_CAUGHT))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue