summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-11-09 17:55:30 -0600
committerBryan Bishop <kanzure@gmail.com>2013-11-09 17:55:30 -0600
commit982cff40af88af1b0c04d1e135ef8ec84007e41a (patch)
treeceae86d0d6bd15e7b14d9008e265047ac8b693aa
parentd5989b755aeedb3d553d225e29c3b8c7c4d8640f (diff)
draw the menu in skip_until_input_required
Step forward 10 frames so that the menu actually draws. Otherwise the user will probably be confused about the actual state of the battle.
-rw-r--r--pokemontools/vba/battle.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pokemontools/vba/battle.py b/pokemontools/vba/battle.py
index 5aeb923..824f27a 100644
--- a/pokemontools/vba/battle.py
+++ b/pokemontools/vba/battle.py
@@ -113,6 +113,9 @@ class Battle(EmulatorController):
while not self.is_input_required():
self.emulator.text_wait()
+ # let the text draw so that the state is more obvious
+ self.emulator.vba.step(count=10)
+
def run(self):
"""
Step through the entire battle.