From 9b026aee7db0db3e7c0f5efa354be73372a12a2a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 21 一月 2026 14:07:26 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(PK攻击顺序规则调整: PVE固定玩家先手,PVP先手排序优先级: 总先攻值 > 战力 > 挑战方先手; )

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py
index c91d54a..8accd71 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py
@@ -1150,10 +1150,12 @@
             faction, num = ChConfig.Def_FactionA, 1 # 主线战斗玩家自己默认阵营A的第1个战斗阵容
             batLineup = mainTurnFight.getBatFaction(faction).getBatlineup(num)
             batObjMgr = BattleObj.GetBatObjMgr()
-            for posNum, objID in batLineup.posObjIDDict.items():
+            for posNum, objID in batLineup.getPosObjIDDict().items():
                 batObj = batObjMgr.getBatObj(objID)
                 if not batObj:
                     continue
+                if batObj.GetBatObjType() != ChConfig.BatObjType_BatHero:
+                    continue
                 lineupHero = presetLineup.GetLineupHero(posNum)
                 if lineupHero.heroBatAttrDict:
                     batObj.UpdInitBatAttr(lineupHero.heroBatAttrDict, lineupHero.heroSkillIDList)

--
Gitblit v1.8.0