From ec19547ca0985de3f1c4045411ee6c171204e535 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 21 十月 2025 19:00:45 +0800
Subject: [PATCH] 297 【常规】坊市系统-服务端(坊市、公会、将魂)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py |    6 +++---
 1 files changed, 3 insertions(+), 3 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 87a001e..cf6faf1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -546,7 +546,7 @@
     ## 获取玩家阵容
     olPlayer = PlayerOnline.GetOnlinePlayer(curPlayer)
     lineup = olPlayer.GetLineup(lineupID)
-    if not lineup.lineupHeroDict:
+    if lineup.IsEmpty():
         GameWorld.DebugLog("玩家没有目标阵容默认取主阵容! lineupID=%s" % lineupID)
         lineup = olPlayer.GetLineup(ShareDefine.Lineup_Main)
     return lineup
@@ -558,12 +558,12 @@
     
     playerID = curPlayer.GetPlayerID()
     lineup = GetPlayerLineup(curPlayer, lineupID)
-    if not lineup.lineupHeroDict:
+    if lineup.IsEmpty():
         return {}
     
     heroDict = {}
     curPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptHero)
-    for posNum in lineup.lineupHeroDict.keys():
+    for posNum in lineup.GetPosNumList():
         hero = lineup.GetLineupHero(posNum)
         heroID = hero.heroID
         itemIndex = hero.itemIndex

--
Gitblit v1.8.0