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