From c79f1f1c8007c483b731448489b67a4b7480e698 Mon Sep 17 00:00:00 2001 From: ultima-soul Date: Wed, 8 Apr 2020 20:13:38 -0700 Subject: [PATCH] Document Roamer Roar bug. --- src/battle_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/battle_main.c b/src/battle_main.c index d2735086f3..841985c489 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -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);