From bface07b5ea879e40f5be8d082bfa77fb873b0bd Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 15 一月 2026 18:07:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/Settlement/BattleSettlementManager.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Main/System/Settlement/BattleSettlementManager.cs b/Main/System/Settlement/BattleSettlementManager.cs
index dcadce9..75e8410 100644
--- a/Main/System/Settlement/BattleSettlementManager.cs
+++ b/Main/System/Settlement/BattleSettlementManager.cs
@@ -150,6 +150,12 @@
         if (_data.ContainsKey("winFaction"))
         {
             var result = (int)_data["winFaction"];
+
+            if (battleName == BattleConst.StoryBossBattleField)
+            {
+                AutoFightModel.Instance.nowChallengeCount += result != 1 ? 1 : 0;
+            }
+
             if (battleName == activeBattleName)
             {
                 //鑷繁鍦烘櫙缁撶畻

--
Gitblit v1.8.0