summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-10-12 16:22:53 -0500
committerBryan Bishop <kanzure@gmail.com>2013-10-12 16:22:53 -0500
commit80fe5be90664faf03992c160055b9fa061eb74af (patch)
tree29b9d43c2e622e6d75ff9a4c8cdf17dbb2a41c47
parentde5a585e5e1f1829ee26bca6e5b7d8aa9dceee25 (diff)
use get_enemy_hp instead of a custom check
-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: