From 29cbac9154e89a55da4074abcd2732a1859dcdab Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 04 六月 2019 19:17:52 +0800 Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameObj.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameObj.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameObj.py index 8bd854e..c67d95b 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameObj.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameObj.py @@ -96,7 +96,9 @@ # # 故该状态标记仅为一个非精确的标记,应用中请注意!!!(当且仅当多个buff有同一个效果时会提前结束该状态) #=============================================================================== def GetPyPlayerState(gameObj, pyState, ownerID = 0, ownerType = 0): - if pyState == 0 or gameObj == None: + if not gameObj: + return False + if pyState == 0: # 0不需要判断 return True curState = gameObj.GetDictByKey(ChConfig.Def_PlayerKey_CurState) -- Gitblit v1.8.0