From de5a585e5e1f1829ee26bca6e5b7d8aa9dceee25 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 12 Oct 2013 16:18:52 -0500 Subject: oops, made a mistake in get_enemy_hp --- pokemontools/vba/vba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pokemontools/vba/vba.py') diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index 433df40..007c132 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -557,5 +557,5 @@ class crystal(object): """ Returns the HP of the current enemy. """ - hp = ((self.cry.vba.memory[0xd218] << 8) | self.cry.vba.memory[0xd217]) + hp = ((self.vba.memory[0xd218] << 8) | self.vba.memory[0xd217]) return hp -- cgit v1.2.3