Sfoglia il codice sorgente

fix(GeneralBattle): Close buff panel and start battle preparation

- close the buff panel before clicking the prepare button\n- enable the 50% experience buff for EvoZone battles
neptine 1 mese fa
parent
commit
c2023476f9
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      tasks/EvoZone/script_task.py

+ 4 - 1
tasks/EvoZone/script_task.py

@@ -303,7 +303,10 @@ class ScriptTask(GeneralBattle, GeneralInvite, GeneralBuff, GeneralRoom, GameUi,
                     pass
 
                 if not self.appear(self.I_EVOZONE_FIRE):
-                    self.run_general_battle(config=self.config.evo_zone.general_battle_config)
+                    from tasks.Component.GeneralBuff.config_buff import BuffClass
+                    self.run_general_battle(config=self.config.evo_zone.general_battle_config,
+                                            buff=BuffClass.EXP_50
+                                            )
                     break
 
         # 回去