mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 08:38:00 +08:00
Opt: Condition of handle_emergency_repair_use
This commit is contained in:
@@ -117,7 +117,7 @@ class Combat(HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall, Comba
|
|||||||
continue
|
continue
|
||||||
if self.handle_combat_low_emotion():
|
if self.handle_combat_low_emotion():
|
||||||
continue
|
continue
|
||||||
if self.handle_emergency_repair_use():
|
if balance_hp and self.handle_emergency_repair_use():
|
||||||
continue
|
continue
|
||||||
if self.appear_then_click(BATTLE_PREPARATION, interval=2):
|
if self.appear_then_click(BATTLE_PREPARATION, interval=2):
|
||||||
continue
|
continue
|
||||||
@@ -166,8 +166,6 @@ class Combat(HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall, Comba
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def handle_emergency_repair_use(self):
|
def handle_emergency_repair_use(self):
|
||||||
if not self.config.ENABLE_HP_BALANCE:
|
|
||||||
return False
|
|
||||||
if self.appear_then_click(EMERGENCY_REPAIR_CONFIRM, offset=True):
|
if self.appear_then_click(EMERGENCY_REPAIR_CONFIRM, offset=True):
|
||||||
self.device.sleep(0.5) # Animation: hp increase and emergency_repair amount decrease.
|
self.device.sleep(0.5) # Animation: hp increase and emergency_repair amount decrease.
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ class Raid(MapOperation, Combat):
|
|||||||
continue
|
continue
|
||||||
if self.handle_combat_low_emotion():
|
if self.handle_combat_low_emotion():
|
||||||
continue
|
continue
|
||||||
if self.handle_emergency_repair_use():
|
|
||||||
continue
|
|
||||||
if self.appear_then_click(BATTLE_PREPARATION, interval=2):
|
if self.appear_then_click(BATTLE_PREPARATION, interval=2):
|
||||||
continue
|
continue
|
||||||
if self.handle_combat_automation_confirm():
|
if self.handle_combat_automation_confirm():
|
||||||
|
|||||||
Reference in New Issue
Block a user