mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: combat_wave_cost was reset in combat again
This commit is contained in:
parent
9f802e009a
commit
5a55a5917b
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user