mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 22:47:22 +08:00
Fix: fix the stable check before emergency repairing may not work on potato pcs
This commit is contained in:
@@ -166,8 +166,10 @@ class Combat(HPBalancer, EnemySearchingHandler, Retirement, SubmarineCall, Comba
|
||||
if self.appear(BATTLE_PREPARATION) and self.appear(EMERGENCY_REPAIR_AVAILABLE):
|
||||
# When entering battle_preparation page (or after emergency repairing), the emergency icon is active by default,
|
||||
# even if nothing to use. After a short animation, everything shows as usual. Using fleet power number as a
|
||||
# stable checker.
|
||||
self.wait_until_stable(PREPARATION_STABLE_CHECKER)
|
||||
# stable checker. First wait for it to be non-zero, then wait for it to be stable.
|
||||
self.wait_until_disappear(MAIN_FLEET_POWER_ZERO, offset=(20, 20))
|
||||
stable_checker = Button(area=MAIN_FLEET_POWER_ZERO.area, color=(), button=MAIN_FLEET_POWER_ZERO.button, name='')
|
||||
self.wait_until_stable(stable_checker)
|
||||
if not self.appear(EMERGENCY_REPAIR_AVAILABLE):
|
||||
return False
|
||||
logger.info('EMERGENCY_REPAIR_AVAILABLE')
|
||||
|
||||
Reference in New Issue
Block a user