From 0312684d12e68285b0a0feecb5904c78ecba4731 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 22 七月 2025 20:10:51 +0800 Subject: [PATCH] 121 【武将】武将系统-服务端(Hero命令支持一件上阵;一键满级;) --- 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