Fix: combat_wave_cost was reset in combat again

This commit is contained in:
LmeSzinc 2024-05-22 19:19:58 +08:00
parent 9f802e009a
commit 5a55a5917b

View File

@ -86,8 +86,6 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
support_set = False support_set = False
else: else:
support_set = True support_set = True
# Reset combat_wave_cost, so handle_combat_interact() won't activate before handle_combat_prepare()
self.combat_wave_cost = 10
logger.info([support_character, support_set]) logger.info([support_character, support_set])
trial = 0 trial = 0
while 1: while 1:
@ -363,6 +361,8 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
finish = self.combat_finish() finish = self.combat_finish()
if self._combat_should_reenter(): if self._combat_should_reenter():
continue continue
# Reset combat_wave_cost, so handle_combat_interact() won't activate before handle_combat_prepare()
self.combat_wave_cost = 10
if finish: if finish:
break break