mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-26 18:20:42 +00:00
Fix: 修复使用辅助点击时, 退役后报错
This commit is contained in:
parent
7fdb7cfe81
commit
41dcdf5ff3
@ -162,6 +162,8 @@ class Combat(HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall, Comba
|
||||
return True
|
||||
if self.appear(BATTLE_PREPARATION) and self.appear(EMERGENCY_REPAIR_AVAILABLE):
|
||||
logger.info('EMERGENCY_REPAIR_AVAILABLE')
|
||||
if not len(self.hp):
|
||||
return False
|
||||
if np.min(np.array(self.hp)[np.array(self.hp) > 0.001]) < self.config.EMERGENCY_REPAIR_SINGLE_THRESHOLD \
|
||||
or np.max(self.hp[:3]) < self.config.EMERGENCY_REPAIR_HOLE_THRESHOLD \
|
||||
or np.max(self.hp[3:]) < self.config.EMERGENCY_REPAIR_HOLE_THRESHOLD:
|
||||
|
Loading…
Reference in New Issue
Block a user