From 2e892e272f7aea0a7ffbae81e43731c6b20119e6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 04 八月 2025 10:46:12 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(竞技场支持进攻、防守阵容)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py | 11 +++++++----
1 files changed, 7 insertions(+), 4 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 872e5f6..2a29643 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnline.py
@@ -97,11 +97,14 @@
return lineupHero
def GetLineupHeroByID(self, heroID):
+ lineupHero = None
for posNum in self.lineupHeroDict.keys():
- lineup = self.GetLineupHero(posNum)
- if lineup.heroID == heroID:
- return lineup
- return
+ lineupHero = self.GetLineupHero(posNum)
+ if lineupHero.heroID == heroID:
+ return lineupHero
+ if False:
+ lineupHero = LineupHero()
+ return lineupHero
def GetLineupInfo(self):
## 获取阵容信息,即要用到该阵容了,如战斗或者保存缓存信息等
--
Gitblit v1.8.0