mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-06-23 05:16:54 +08:00
Fix: handle low emotion combat withdraw after sinking
This commit is contained in:
@@ -487,8 +487,10 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
||||
|
||||
return False
|
||||
|
||||
def handle_exp_info(self):
|
||||
def handle_exp_info(self, handle_fail=False):
|
||||
"""
|
||||
Args:
|
||||
handle_fail (bool): if handle EXP_INFO_C and EXP_INFO_D
|
||||
Returns:
|
||||
bool:
|
||||
"""
|
||||
@@ -503,6 +505,13 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
||||
if self.appear_then_click(EXP_INFO_B):
|
||||
self.device.sleep((0.25, 0.5))
|
||||
return True
|
||||
if handle_fail:
|
||||
if self.appear_then_click(EXP_INFO_C):
|
||||
self.device.sleep((0.25, 0.5))
|
||||
return True
|
||||
if self.appear_then_click(EXP_INFO_D):
|
||||
self.device.sleep((0.25, 0.5))
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user