Repository navigation
v0.15.2 — auto-fight bugfixes
Three fixes for the auto-fight driver after round-4 reports:
- 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. - 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. - All auto endpoints stop after 3 consecutive noop turns — catches the post-battle outro loop where
gBattleTypeFlagsstays set for many frames while there's no opponent to fight.