Skip to content

v0.15.2 — auto-fight bugfixes

Choose a tag to compare

@apiad apiad released this 10 Jun 22:31
· 123 commits to main since this release

Three fixes for the auto-fight driver after round-4 reports:

  1. Phase 3 escape is now unconditional. The previous code skipped pressing B when gBattleMons[0] was unreadable mid-party-menu, which is exactly when we need B most. Now: any phase=3 inside the advance loop = press B, capped at 6 consecutive presses.
  2. K (/battle/auto/opponent) now stops on opponent species change. Previously only stopped on unreadable opponent; never broke when Geodude #1 → Geodude #2 swap happened.
  3. All auto endpoints stop after 3 consecutive noop turns — catches the post-battle outro loop where gBattleTypeFlags stays set for many frames while there's no opponent to fight.