From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/MainLevel/MainBossEnterWin.cs |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/Main/System/MainLevel/MainBossEnterWin.cs b/Main/System/MainLevel/MainBossEnterWin.cs
index 058acbf..7bde641 100644
--- a/Main/System/MainLevel/MainBossEnterWin.cs
+++ b/Main/System/MainLevel/MainBossEnterWin.cs
@@ -106,7 +106,7 @@
 
         fightPowerText.text = UIHelper.ReplaceLargeArtNum(levelConfig.FightPower);
 
-        var canChallengeBoss = AutoFightModel.Instance.CanChallengeBoss();
+        var canChallengeBoss = MainLevelManager.Instance.CanChallengeBoss();
 
         fightBtn.SetInteractable(canChallengeBoss);
         fightIcon.SetActive(canChallengeBoss);
@@ -134,12 +134,9 @@
 
     void FightBoss()
     {
-        if (AutoFightModel.Instance.CanChallengeBoss())
+        if (MainLevelManager.Instance.CanChallengeBoss())
         {
-            var pack = new CB410_tagCMTurnFight();
-            pack.MapID = 2;
-            GameNetSystem.Instance.SendInfo(pack);
-
+            BattleManager.Instance.SendTurnFight(2);
             AutoFightModel.Instance.isPause = true;
         }
         CloseWindow();
@@ -152,7 +149,7 @@
         {
             case PlayerDataType.ExAttr1:
             case PlayerDataType.ExAttr2:
-                var canChallengeBoss = AutoFightModel.Instance.CanChallengeBoss();
+                var canChallengeBoss = MainLevelManager.Instance.CanChallengeBoss();
 
                 fightBtn.SetInteractable(canChallengeBoss);
                 fightIcon.SetActive(canChallengeBoss);

--
Gitblit v1.8.0