Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pret/pokefirered into modern_gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
PikalaxALT committed Apr 9, 2020
2 parents eba370a + a81edab commit a42e413
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/battle_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3851,7 +3851,11 @@ static void ReturnFromBattleToOverworld(void)
if (gBattleTypeFlags & BATTLE_TYPE_ROAMER)
{
UpdateRoamerHPStatus(&gEnemyParty[0]);
if ((gBattleOutcome & B_OUTCOME_WON) || gBattleOutcome == B_OUTCOME_CAUGHT)
#ifdef BUGFIX
if ((gBattleOutcome == B_OUTCOME_WON) || gBattleOutcome == B_OUTCOME_CAUGHT)
#else
if ((gBattleOutcome & B_OUTCOME_WON) || gBattleOutcome == B_OUTCOME_CAUGHT) // Bug: When Roar is used by roamer, gBattleOutcome is B_OUTCOME_PLAYER_TELEPORTED (5).
#endif // & with B_OUTCOME_WON (1) will return TRUE and deactivates the roamer.
SetRoamerInactive();
}
m4aSongNumStop(SE_HINSI);
Expand Down

0 comments on commit a42e413

Please sign in to comment.