From 0b7ed30a33fb9775b2b5e1f3245a2e28608c9fc6 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 22 Sep 2013 12:42:02 -0500 Subject: go heal if level reached the target --- pokemontools/vba/autoplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemontools/vba/autoplayer.py b/pokemontools/vba/autoplayer.py index c1e36bc..0049021 100644 --- a/pokemontools/vba/autoplayer.py +++ b/pokemontools/vba/autoplayer.py @@ -418,7 +418,7 @@ class SpeedRunner(Runner): # if pokemon health is >20, just continue # if move 1 PP is 0, just continue - if cur_hp > 20 and move_pp > 5: + if cur_hp > 20 and move_pp > 5 and self.cry.vba.memory[0xdcfe] < level: self.cry.move("u") return self.new_bark_level_grind(level, walk_to_grass=False, skip=False) -- cgit v1.2.3