File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -402,9 +402,14 @@ def geneaux():
402402 battle .main .buddy_swap (Kimahri )
403403 CurrentPlayer ().attack ()
404404 while not Tidus .is_turn ():
405- CurrentPlayer ().defend ()
405+ if memory .main .turn_ready ():
406+ CurrentPlayer ().defend ()
406407 while Tidus .is_turn ():
407- CurrentPlayer ().defend ()
408+ if memory .main .turn_ready ():
409+ CurrentPlayer ().defend ()
410+ memory .main .wait_frames (3 )
411+ while not memory .main .turn_ready ():
412+ pass
408413 battle .main .buddy_swap (Yuna )
409414 screen .await_turn ()
410415 battle .main .aeon_summon (0 ) # Summon Valefor
@@ -781,7 +786,7 @@ def extractor():
781786 elif (
782787 memory .main .get_enemy_current_hp ()[0 ] < 1400
783788 and not screen .faint_check ()
784- and memory . main . get_overdrive_battle ( 4 ) == 100
789+ and Wakka . has_overdrive ()
785790 ):
786791 CurrentPlayer ().defend ()
787792 else :
Original file line number Diff line number Diff line change @@ -347,6 +347,11 @@ def overdrive_percent(self, combat=False) -> int:
347347 return self ._read_char_stat_offset_address (PlayerMagicNumbers .OVERDRIVE )
348348
349349 def has_overdrive (self , combat = False ) -> bool :
350+ # Passed variable now does nothing, 11/30, clean up if the below logic works.
351+ if memory .main .battle_active ():
352+ combat = True
353+ else :
354+ combat = False
350355 return self .overdrive_percent (combat = combat ) == 100
351356
352357 def is_turn (self ) -> bool :
You can’t perform that action at this time.
0 commit comments