mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-31 00:13:58 +01:00
Updated FORM_ITEM_HOLD check in GetFormChangeTargetSpeciesBoxMon
This commit is contained in:
parent
a7a1ab9aeb
commit
e8832a2655
@ -8283,9 +8283,7 @@ u16 GetFormChangeTargetSpeciesBoxMon(struct BoxPokemon *boxMon, u16 method, u32
|
|||||||
{
|
{
|
||||||
case FORM_ITEM_HOLD:
|
case FORM_ITEM_HOLD:
|
||||||
if ((heldItem == formChanges[i].param1 || formChanges[i].param1 == ITEM_NONE)
|
if ((heldItem == formChanges[i].param1 || formChanges[i].param1 == ITEM_NONE)
|
||||||
|| ability == formChanges[i].param2)
|
&& (ability == formChanges[i].param2 || formChanges[i].param2 == ABILITY_NONE))
|
||||||
targetSpecies = formChanges[i].targetSpecies;
|
|
||||||
if ((heldItem == formChanges[i].param1 || formChanges[i].param1 == ITEM_NONE) && ability == formChanges[i].param2)
|
|
||||||
targetSpecies = formChanges[i].targetSpecies;
|
targetSpecies = formChanges[i].targetSpecies;
|
||||||
break;
|
break;
|
||||||
case FORM_ITEM_USE:
|
case FORM_ITEM_USE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user