From 83c9fb9b061d307bf5d806dc524ecac0673ad2b4 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Mon, 15 Jul 2024 21:47:59 +0800 Subject: [PATCH] Fix: Running free weekly for planner --- tasks/combat/combat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/combat/combat.py b/tasks/combat/combat.py index fd58c9d1b..c5a1bb1e2 100644 --- a/tasks/combat/combat.py +++ b/tasks/combat/combat.py @@ -133,6 +133,9 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo return False if not self.handle_combat_prepare(): return False + if self.is_doing_planner and self.combat_wave_cost == 0: + logger.info('Free combat gets nothing cannot meet planner needs') + return False self.device.click(COMBAT_PREPARE) self.interval_reset(COMBAT_PREPARE) trial += 1