Fixed Pokémon fainting in the Overworld that don't have that specific form change entry
This commit is contained in:
parent
0dfb60f2e4
commit
bef5d98b88
1 changed files with 1 additions and 1 deletions
|
@ -8670,7 +8670,7 @@ bool32 TryFormChange(u32 monId, u32 side, u16 method)
|
|||
|
||||
targetSpecies = GetFormChangeTargetSpecies(&party[monId], method, 0);
|
||||
|
||||
if (targetSpecies == SPECIES_NONE)
|
||||
if (targetSpecies == SPECIES_NONE && gBattleStruct != NULL)
|
||||
targetSpecies = gBattleStruct->changedSpecies[monId];
|
||||
|
||||
if (targetSpecies != SPECIES_NONE)
|
||||
|
|
Loading…
Reference in a new issue