@@ -865,17 +865,20 @@ def KilikaWoods(valeforCharge):
865
865
def Geneaux ():
866
866
FFX_Logs .writeLog ("Fight start: Sinspawn Geneaux" )
867
867
FFX_Screen .awaitTurn ()
868
- if FFX_Screen .turnYuna ():
869
- buddySwap (1 )
870
- defend ()
871
- FFX_Screen .awaitTurn ()
872
- attack ('none' )
873
- FFX_Screen .clickToBattle ()
874
- buddySwap (1 )
875
- else :
876
- attack ('none' )
877
- FFX_Screen .clickToBattle ()
878
- aeonSummon (0 ) # Summon Valefor
868
+ if not FFX_Screen .turnTidus ():
869
+ while not FFX_Screen .turnTidus ():
870
+ if FFX_Screen .battleScreen ():
871
+ defend ()
872
+
873
+ attack ('none' )
874
+
875
+ FFX_Screen .clickToBattle ()
876
+ if not FFX_Screen .turnYuna ():
877
+ while not FFX_Screen .turnYuna ():
878
+ if FFX_Screen .battleScreen ():
879
+ defend ()
880
+
881
+ aeonSummon (0 ) # Summon Valefor
879
882
FFX_Screen .awaitTurn ()
880
883
FFX_Xbox .menuLeft ()
881
884
time .sleep (0.8 )
@@ -4290,7 +4293,14 @@ def lancetSwapDjose(direction):
4290
4293
def lancet (direction ):
4291
4294
print ("Casting Lancet with variation: " , direction )
4292
4295
while FFX_memory .battleMenuCursor () != 20 :
4293
- FFX_Xbox .menuDown ()
4296
+ if FFX_memory .battleMenuCursor () == 255 :
4297
+ time .sleep (0.01 )
4298
+ elif FFX_memory .battleMenuCursor () == 1 :
4299
+ FFX_Xbox .menuUp ()
4300
+ elif FFX_memory .battleMenuCursor () > 20 :
4301
+ FFX_Xbox .menuUp ()
4302
+ else :
4303
+ FFX_Xbox .menuDown ()
4294
4304
FFX_Xbox .menuB ()
4295
4305
time .sleep (0.3 )
4296
4306
FFX_Xbox .menuB ()
@@ -4326,7 +4336,7 @@ def lancetHome(direction):
4326
4336
def fleeAll ():
4327
4337
FFX_Logs .writeLog ("Fleeing from battle, prior to Mt Gagazet" )
4328
4338
print ("Attempting escape (all party members and end screen)" )
4329
- while FFX_memory .battleActive ():
4339
+ while not FFX_memory .menuOpen ():
4330
4340
if FFX_memory .battleScreen ():
4331
4341
if FFX_Screen .turnTidus ():
4332
4342
tidusFlee ()
0 commit comments