Fix: combat_wave_cost was cleared after battle

This commit is contained in:
LmeSzinc 2024-07-02 02:52:09 +08:00
parent 4afe0bf908
commit 6c80316a0c

View File

@ -402,10 +402,10 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
finish = self.combat_finish()
if self._combat_should_reenter():
continue
# Reset combat_wave_cost, so handle_combat_interact() won't activate before handle_combat_prepare()
self.combat_wave_cost = 10
if finish:
break
# Reset combat_wave_cost, so handle_combat_interact() won't activate before handle_combat_prepare()
self.combat_wave_cost = 10
logger.attr('combat_wave_done', self.combat_wave_done)
return self.combat_wave_done