mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-09 10:47:24 -05:00
use get_enemy_hp instead of a custom check
This commit is contained in:
parent
de5a585e5e
commit
80fe5be906
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user