From 3bf53fa87facc5471ee0b06c496fee6e8eaceefb Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 14 Nov 2013 20:00:59 -0600 Subject: detect the evolved screen text --- pokemontools/vba/battle.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pokemontools') diff --git a/pokemontools/vba/battle.py b/pokemontools/vba/battle.py index 3339a9f..4b7fb68 100644 --- a/pokemontools/vba/battle.py +++ b/pokemontools/vba/battle.py @@ -365,6 +365,8 @@ class Battle(EmulatorController): self.handle_mandatory_switch() elif self.is_levelup_screen(): self.emulator.vba.press("a", hold=5, after=30) + elif self.is_evolved_screen(): + self.emulator.vba.step(count=30) else: raise BattleException("unknown state, aborting") -- cgit v1.2.3