From 229d066301a40c3e20a1167571c42185a4e6029b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 20 三月 2026 11:03:56 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(主线关卡每个房间开始战斗时补通知当前进度;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
index 517a882..e54dc6f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -169,6 +169,17 @@
deadCnt += 1
return deadCnt
+ def GetBeFrozenCnt(self):
+ ## 获取本阵容累计被冰冻次数
+ totalCnt = 0
+ batObjMgr = BattleObj.GetBatObjMgr()
+ for objID in self._batHeroObjIDList:
+ batObj = batObjMgr.getBatObj(objID)
+ if not batObj:
+ continue
+ totalCnt += batObj.GetBeFrozenCnt()
+ return totalCnt
+
class BatFaction():
## 战斗阵营
@@ -1595,6 +1606,9 @@
GameWorld.DebugLogEx("没有设置主阵容!", playerID)
return
+ # 开始时补通知一次当前关卡进度, 原因:前端播放战报关卡进度吞包刷新问题
+ PlayerControl.SetMainLevelNowValue(curPlayer, PlayerControl.GetMainLevelNowValue(curPlayer))
+
strongerLV = levelIpyData.GetNPCLV()
difficulty = levelIpyData.GetDifficulty()
mainFightMgr = GetMainFightMgr(curPlayer)
--
Gitblit v1.8.0