mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 09:24:19 +01:00
Merged FORM_ITEM_HOLD_ABILITY into FORM_ITEM_HOLD
There was never a reason not to.
This commit is contained in:
parent
f1c153e469
commit
a7a1ab9aeb
@ -1,8 +1,8 @@
|
||||
/*
|
||||
FORM_ITEM_HOLD:
|
||||
Form change activates when the item is given to or taken from the selected Pokémon.
|
||||
Alternatively, form change activates when the item is used on the selected Pokémon
|
||||
that has a particular ability.
|
||||
Form change activates when the specified item is given to or taken from the selected Pokémon.
|
||||
Alternatively, form change activates when the specified item is is given to or taken from
|
||||
the selected Pokémon that has a particular ability.
|
||||
param1 = item to hold
|
||||
param2 = ability to check for, optional
|
||||
|
||||
|
@ -8285,6 +8285,8 @@ u16 GetFormChangeTargetSpeciesBoxMon(struct BoxPokemon *boxMon, u16 method, u32
|
||||
if ((heldItem == formChanges[i].param1 || formChanges[i].param1 == ITEM_NONE)
|
||||
|| ability == formChanges[i].param2)
|
||||
targetSpecies = formChanges[i].targetSpecies;
|
||||
if ((heldItem == formChanges[i].param1 || formChanges[i].param1 == ITEM_NONE) && ability == formChanges[i].param2)
|
||||
targetSpecies = formChanges[i].targetSpecies;
|
||||
break;
|
||||
case FORM_ITEM_USE:
|
||||
if (arg == formChanges[i].param1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user