detect the evolved screen text

This commit is contained in:
Bryan Bishop 2013-11-14 20:00:59 -06:00
parent 05faa7784a
commit 3bf53fa87f

View File

@ -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")