Ver Fonte

fix(DemonEncounter): set current count=0

Azure há 1 ano atrás
pai
commit
a220217b3b
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      tasks/DemonEncounter/script_task.py

+ 2 - 0
tasks/DemonEncounter/script_task.py

@@ -190,6 +190,8 @@ class ScriptTask(GameUi, GeneralBattle, DemonEncounterAssets, SwitchSoul):
                     self.run_general_battle()
                     continue
                 preset_switched = True
+                # 逢魔其他战斗会影响current_count导致大于0
+                self.current_count = 0
                 if self.best_demon_enable:
                     general_battle_config = convert_to_general_battle_config(self.boss_type,
                                                                              best_demon_battle_conf=self.conf.best_demon_battle_config)