Fixed Pokémon fainting in the Overworld that don't have that specific form change entry

This commit is contained in:
Eduardo Quezada 2023-03-18 09:47:54 -03:00
parent 0dfb60f2e4
commit bef5d98b88

View File

@ -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)