Merge pull request #2284 from StephenLynx/master
Fixed pickup running when it shouldn't in some cases.
This commit is contained in:
commit
875f656045
1 changed files with 2 additions and 8 deletions
|
@ -13313,10 +13313,7 @@ static void Cmd_pickup(void)
|
||||||
species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2);
|
species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2);
|
||||||
heldItem = GetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM);
|
heldItem = GetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM);
|
||||||
|
|
||||||
if (GetMonData(&gPlayerParty[i], MON_DATA_ABILITY_NUM))
|
ability = gBaseStats[species].abilities[GetMonData(&gPlayerParty[i], MON_DATA_ABILITY_NUM)];
|
||||||
ability = gBaseStats[species].abilities[1];
|
|
||||||
else
|
|
||||||
ability = gBaseStats[species].abilities[0];
|
|
||||||
|
|
||||||
if (ability == ABILITY_PICKUP
|
if (ability == ABILITY_PICKUP
|
||||||
&& species != SPECIES_NONE
|
&& species != SPECIES_NONE
|
||||||
|
@ -13352,10 +13349,7 @@ static void Cmd_pickup(void)
|
||||||
if (lvlDivBy10 > 9)
|
if (lvlDivBy10 > 9)
|
||||||
lvlDivBy10 = 9;
|
lvlDivBy10 = 9;
|
||||||
|
|
||||||
if (GetMonData(&gPlayerParty[i], MON_DATA_ABILITY_NUM))
|
ability = gBaseStats[species].abilities[GetMonData(&gPlayerParty[i], MON_DATA_ABILITY_NUM)];
|
||||||
ability = gBaseStats[species].abilities[1];
|
|
||||||
else
|
|
||||||
ability = gBaseStats[species].abilities[0];
|
|
||||||
|
|
||||||
if (ability == ABILITY_PICKUP
|
if (ability == ABILITY_PICKUP
|
||||||
&& species != SPECIES_NONE
|
&& species != SPECIES_NONE
|
||||||
|
|
Loading…
Reference in a new issue