diff --git a/src/task/BaseCombatTask.py b/src/task/BaseCombatTask.py index 5b1f3e7..9c143cb 100644 --- a/src/task/BaseCombatTask.py +++ b/src/task/BaseCombatTask.py @@ -69,8 +69,7 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck): raise e except NotInCombatException as e: logger.info(f'combat_once out of combat break {e}') - if self.debug: - self.screenshot(f'out of combat break {self.out_of_combat_reason}') + self.screenshot(f'combat_once out of combat break {self.out_of_combat_reason}') break self.wait_in_team_and_world(time_out=10) self.sleep(1) diff --git a/src/task/BaseWWTask.py b/src/task/BaseWWTask.py index a0b9bca..ef555c3 100644 --- a/src/task/BaseWWTask.py +++ b/src/task/BaseWWTask.py @@ -127,12 +127,16 @@ class BaseWWTask(BaseTask, FindFeature, OCR): def handle_monthly_card(self): monthly_card = self.find_one('monthly_card', threshold=0.8) if monthly_card is not None: + self.screenshot('monthly_card1') self.click(monthly_card) self.sleep(3) + self.screenshot('monthly_card2') self.click(monthly_card) self.sleep(2) + self.screenshot('monthly_card3') self.click(monthly_card) self.sleep(2) + self.screenshot('monthly_card4') self.set_check_monthly_card(next_day=True) logger.debug(f'check_monthly_card {monthly_card}') return monthly_card is not None