mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-19 01:44:20 +01:00
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
@ -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…
x
Reference in New Issue
Block a user