diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 21:27:28 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 21:27:28 -0600 |
commit | 18449eea21096cf8b90e21ee7bcdc6da5e047df4 (patch) | |
tree | 78aeb36943d131b6572f08c58831ffecbe9b218e /pokemontools/vba/battle.py | |
parent | 4c6a904db191c182c3b9cecdcbc0d5ea3b5c2173 (diff) |
function to check if it's the yes/no prompt
This is the prompt that appears during battles for whether or not to
switch pokemon when the other trainer is sending something else out.
Diffstat (limited to 'pokemontools/vba/battle.py')
-rw-r--r-- | pokemontools/vba/battle.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pokemontools/vba/battle.py b/pokemontools/vba/battle.py index 87cd7b1..17c0d5d 100644 --- a/pokemontools/vba/battle.py +++ b/pokemontools/vba/battle.py @@ -55,6 +55,13 @@ class Battle(EmulatorController): """ return self.is_fight_pack_run_menu() + def is_switch_prompt(self): + """ + Detects if the battle is waiting for the player to choose whether or + not to switch pokemon. + """ + return self.emulator.is_battle_switch_prompt() + def is_mandatory_switch(self): """ Detects if the battle is waiting for the player to choose a next |