From 3ce47ce4e7a13212a1efb32d0625222a8b18655d Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 23 十月 2025 18:56:44 +0800
Subject: [PATCH] 125 战斗 修复暂停导致的技能时间错误问题 修复因为设置多个 TimeScale导致的速度翻倍问题

---
 Main/System/MainLevel/MainBossEnterWin.cs |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/Main/System/MainLevel/MainBossEnterWin.cs b/Main/System/MainLevel/MainBossEnterWin.cs
index 5f7ff91..212b555 100644
--- a/Main/System/MainLevel/MainBossEnterWin.cs
+++ b/Main/System/MainLevel/MainBossEnterWin.cs
@@ -22,6 +22,7 @@
     [SerializeField] Button rankBtn;
     [SerializeField] ItemCell[] passAwards;
     [SerializeField] Button fightBtn;
+    [SerializeField] Image fightIcon;
     [SerializeField] ScrollerController dropItemScroller;
 
 
@@ -105,11 +106,10 @@
 
         fightPowerText.text = UIHelper.ReplaceLargeArtNum(levelConfig.FightPower);
 
-        var canChallengeBoss = AutoFightModel.Instance.CanChallengeBoss();
+        var canChallengeBoss = MainLevelManager.Instance.CanChallengeBoss();
 
-        fightBtn.interactable = canChallengeBoss;
-        fightBtn.SetColorful(null, canChallengeBoss);
-
+        fightBtn.SetInteractable(canChallengeBoss);
+        fightIcon.SetActive(canChallengeBoss);
 
         for (int i = 0; i < passAwards.Length; i++)
         {
@@ -134,9 +134,14 @@
 
     void FightBoss()
     {
-        if (AutoFightModel.Instance.CanChallengeBoss())
+        if (MainLevelManager.Instance.CanChallengeBoss())
         {
-            BattleManager.Instance.MainFightRequest(3);
+            var pack = new CB410_tagCMTurnFight();
+            pack.MapID = 2;
+            // pack.FuncLineID = (uint)PlayerDatas.Instance.baseData.ExAttr1 + 1;
+            GameNetSystem.Instance.SendInfo(pack);
+
+            AutoFightModel.Instance.isPause = true;
         }
         CloseWindow();
     }
@@ -148,10 +153,10 @@
         {
             case PlayerDataType.ExAttr1:
             case PlayerDataType.ExAttr2:
-                var canChallengeBoss = AutoFightModel.Instance.CanChallengeBoss();
+                var canChallengeBoss = MainLevelManager.Instance.CanChallengeBoss();
 
-                fightBtn.interactable = canChallengeBoss;
-                fightBtn.SetColorful(null, canChallengeBoss);
+                fightBtn.SetInteractable(canChallengeBoss);
+                fightIcon.SetActive(canChallengeBoss);
                 break;
         }
 

--
Gitblit v1.8.0