1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Opt: Condition of handle_emergency_repair_use

This commit is contained in:
LmeSzinc
2020-08-15 20:15:07 +08:00
parent 410269d125
commit 58297661fa
2 changed files with 1 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ class Combat(HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall, Comba
continue
if self.handle_combat_low_emotion():
continue
if self.handle_emergency_repair_use():
if balance_hp and self.handle_emergency_repair_use():
continue
if self.appear_then_click(BATTLE_PREPARATION, interval=2):
continue
@@ -166,8 +166,6 @@ class Combat(HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall, Comba
return False
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):
self.device.sleep(0.5) # Animation: hp increase and emergency_repair amount decrease.
return True

View File

@@ -45,8 +45,6 @@ class Raid(MapOperation, Combat):
continue
if self.handle_combat_low_emotion():
continue
if self.handle_emergency_repair_use():
continue
if self.appear_then_click(BATTLE_PREPARATION, interval=2):
continue
if self.handle_combat_automation_confirm():