summaryrefslogtreecommitdiff
path: root/pokemontools/vba/autoplayer.py
diff options
context:
space:
mode:
Diffstat (limited to 'pokemontools/vba/autoplayer.py')
-rw-r--r--pokemontools/vba/autoplayer.py2
1 files changed, 1 insertions, 1 deletions
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: