mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: Exercise opponent refresh
This commit is contained in:
@@ -3,11 +3,12 @@ from module.exercise.assets import *
|
||||
from module.exercise.equipment import ExerciseEquipment
|
||||
from module.exercise.hp_daemon import HpDaemon
|
||||
from module.exercise.opponent import OpponentChoose, OPPONENT
|
||||
from module.ui.assets import EXERCISE_CHECK
|
||||
|
||||
|
||||
class ExerciseCombat(HpDaemon, OpponentChoose, ExerciseEquipment):
|
||||
def _in_exercise(self):
|
||||
return self.appear(NEW_OPPONENT)
|
||||
return self.appear(EXERCISE_CHECK, offset=(20, 20))
|
||||
|
||||
def is_combat_executing(self):
|
||||
"""
|
||||
|
||||
@@ -19,8 +19,8 @@ class Exercise(ExerciseCombat):
|
||||
self.device.sleep(1)
|
||||
|
||||
def _exercise_once(self):
|
||||
self._opponent_fleet_check_all()
|
||||
while self.opponent_change_count <= 5:
|
||||
self._opponent_fleet_check_all()
|
||||
for opponent in self._opponent_sort():
|
||||
success = self._combat(opponent)
|
||||
if success:
|
||||
|
||||
Reference in New Issue
Block a user