From 96cfe4f8d471cde70c2369c6129da6e8e1900231 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:13:21 +0800 Subject: [PATCH] Fix: Set combat_wave_cost to 40 before every combat --- tasks/ornament/combat.py | 1 + tasks/ornament/ornament.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/ornament/combat.py b/tasks/ornament/combat.py index 3903efb33..2e6c6b512 100644 --- a/tasks/ornament/combat.py +++ b/tasks/ornament/combat.py @@ -168,6 +168,7 @@ class OrnamentCombat(Dungeon, RouteLoader, DungeonState): in: COMBAT_PREPARE out: is_in_main """ + self.combat_wave_cost = 40 @run_once def check_team_prepare(): diff --git a/tasks/ornament/ornament.py b/tasks/ornament/ornament.py index afbb71e9b..843384022 100644 --- a/tasks/ornament/ornament.py +++ b/tasks/ornament/ornament.py @@ -84,6 +84,7 @@ class Ornament(OrnamentCombat): self.config.task_stop() # Run + logger.attr('Ornament_UseStamina', self.config.Ornament_UseStamina) dungeon = DungeonList.find(self.config.Ornament_Dungeon) self.support_once = False self.combat_wave_cost = 40