Sfoglia il codice sorgente

fix(DemonEncounter): set current count=0

Azure 1 anno fa
parent
commit
a220217b3b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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)