Skip to content

Commit

Permalink
Update src/battle_script_commands.c
Browse files Browse the repository at this point in the history
Co-authored-by: Alex <[email protected]>
  • Loading branch information
shachar700 and AlexOn1ine authored Jan 28, 2025
1 parent af1343c commit 2562788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_script_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -7351,7 +7351,7 @@ static void Cmd_forcerandomswitch(void)
} while (GetMonData(&party[i], MON_DATA_SPECIES) == SPECIES_NONE
|| GetMonData(&party[i], MON_DATA_IS_EGG) == TRUE
|| GetMonData(&party[i], MON_DATA_HP) == 0); //should be one while loop, but that doesn't match.
*(gBattleStruct->monToSwitchIntoId + gBattlerTarget) = i;
gBattleStruct->monToSwitchIntoId[gBattlerTarget] = i;

if (!IsMultiBattle())
SwitchPartyOrder(gBattlerTarget);
Expand Down

0 comments on commit 2562788

Please sign in to comment.