We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5023314 + 7374136 commit 5023a11Copy full SHA for 5023a11
players/base.py
@@ -225,9 +225,15 @@ def defend(self):
225
pass
226
memory.main.wait_frames(1) # Buffer for safety
227
228
+ defend_turn = memory.main.get_battle_char_turn()
229
+
230
#Now tap to defending status.
231
while not self.is_defending():
- xbox.tap_y()
232
+ if defend_turn != memory.main.get_battle_char_turn():
233
+ break
234
+ else:
235
+ xbox.tap_y()
236
+ memory.main.wait_frames(1) # Buffer for safety
237
238
def navigate_to_battle_menu(self, target: int):
239
"""Different characters have different menu orders."""
0 commit comments