File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -402,9 +402,14 @@ def geneaux():
402
402
battle .main .buddy_swap (Kimahri )
403
403
CurrentPlayer ().attack ()
404
404
while not Tidus .is_turn ():
405
- CurrentPlayer ().defend ()
405
+ if memory .main .turn_ready ():
406
+ CurrentPlayer ().defend ()
406
407
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
408
413
battle .main .buddy_swap (Yuna )
409
414
screen .await_turn ()
410
415
battle .main .aeon_summon (0 ) # Summon Valefor
@@ -781,7 +786,7 @@ def extractor():
781
786
elif (
782
787
memory .main .get_enemy_current_hp ()[0 ] < 1400
783
788
and not screen .faint_check ()
784
- and memory . main . get_overdrive_battle ( 4 ) == 100
789
+ and Wakka . has_overdrive ()
785
790
):
786
791
CurrentPlayer ().defend ()
787
792
else :
Original file line number Diff line number Diff line change @@ -347,6 +347,11 @@ def overdrive_percent(self, combat=False) -> int:
347
347
return self ._read_char_stat_offset_address (PlayerMagicNumbers .OVERDRIVE )
348
348
349
349
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
350
355
return self .overdrive_percent (combat = combat ) == 100
351
356
352
357
def is_turn (self ) -> bool :
You can’t perform that action at this time.
0 commit comments