From 40f1b549ff681d8f0cb0f07b00b690e4dfbbe347 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 02 二月 2026 15:43:03 +0800
Subject: [PATCH] 125 修复跳过时 偶尔会不出现结算的问题
---
Main/System/Battle/BattleManager.cs | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index e2cd57f..e7a56b2 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -422,14 +422,19 @@
}
- public BattleField GetBattleField(ulong packUID)
+ public BattleField GetBattleField(ulong packUID, bool _ingoreReject = false)
{
string guid = GetGUID(packUID);
- BattleField battleField = GetBattleField(GetGUID(packUID));
- if (battleField == null || battleField.rejectNewPackage)
+ BattleField battleField = GetBattleField(guid);
+ if (null == battleField)
{
return null;
}
+ if (battleField.rejectNewPackage && !_ingoreReject)
+ {
+ Debug.LogWarning("reject all new package");
+ return null;
+ }
return battleField;
}
--
Gitblit v1.8.0