diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2019-05-14 15:42:55 +0200 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-05-16 17:09:43 -0500 |
commit | 4ae1e014bc799795c770564fb97f36c76913e5c8 (patch) | |
tree | 3a29c633b4ae1971b4a9fcce08af7ed5179010d6 /src/battle_script_commands.c | |
parent | 33979f0fa69001b41668726828603e22326694c1 (diff) |
Change abilities in base stats to array
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r-- | src/battle_script_commands.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index d79bfb0db..5016a3a58 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -9845,9 +9845,9 @@ static void atkE5_pickup(void) heldItem = GetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM); if (GetMonData(&gPlayerParty[i], MON_DATA_ABILITY_NUM)) - ability = gBaseStats[species].ability2; + ability = gBaseStats[species].abilities[1]; else - ability = gBaseStats[species].ability1; + ability = gBaseStats[species].abilities[0]; if (ability == ABILITY_PICKUP && species != 0 @@ -9868,9 +9868,9 @@ static void atkE5_pickup(void) heldItem = GetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM); if (GetMonData(&gPlayerParty[i], MON_DATA_ABILITY_NUM)) - ability = gBaseStats[species].ability2; + ability = gBaseStats[species].abilities[1]; else - ability = gBaseStats[species].ability1; + ability = gBaseStats[species].abilities[0]; if (ability == ABILITY_PICKUP && species != 0 |