From 80fe5be90664faf03992c160055b9fa061eb74af Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 12 Oct 2013 16:22:53 -0500 Subject: use get_enemy_hp instead of a custom check --- pokemontools/vba/autoplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemontools/vba/autoplayer.py b/pokemontools/vba/autoplayer.py index 6aa9494..847ebbd 100644 --- a/pokemontools/vba/autoplayer.py +++ b/pokemontools/vba/autoplayer.py @@ -387,7 +387,7 @@ class SpeedRunner(Runner): # wait for the move to be over self.cry.text_wait() - hp = ((self.cry.vba.memory[0xd218] << 8) | self.cry.vba.memory[0xd217]) + hp = self.cry.get_enemy_hp() print "enemy hp is: " + str(hp) if hp == 0: -- cgit v1.2.3