From 3bc28c54e82721b7858eaa3507f0f65a4041736d Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 08 八月 2025 18:51:39 +0800
Subject: [PATCH] 125 【战斗】战斗系统 协议更新 配置更新

---
 Main/System/Battle/BattleManager.cs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index f0b92a1..630243f 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -323,6 +323,27 @@
         return battleField;
     }
 
+    public void DestroyBattleField(BattleField battleField)
+    {
+        if (battleField == null)
+        {
+            Debug.LogError("DestroyBattleField called with null battleField");
+            return;
+        }
+
+        string guid = battleField.guid;
+
+        if (battleFields.ContainsKey(guid))
+        {
+            battleFields.Remove(guid);
+        }
+        
+        if (storyBattleField == battleField)
+        {
+            storyBattleField = null;
+        }
+    }
+
 
     // 鐩墠鏀寔  BYTE ReqType; // 0-鍋滄鎴樻枟鍥炲煄锛�1-璁剧疆娑堣�楀�嶅�硷紱2-鎸戞垬鍏冲崱灏忔�紱3-鎸戞垬鍏冲崱boss锛�4-缁х画鎴樻枟锛�
     // 0-鍋滄鎴樻枟鍥炲煄   -  鐜╁涓诲姩鐐瑰嚮鍥炲煄鏃跺彂閫�

--
Gitblit v1.8.0