From 306dd34614f1890e10cc07c66772d8bd6ca5a2eb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 26 二月 2021 15:21:55 +0800
Subject: [PATCH] 4952 【主干】【BT2】【BT】【BTZF】获取召唤兽NPC主人报错(防范取不到属性GetOwner)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 65d06dd..29fc916 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -1682,6 +1682,9 @@
# @remarks 获取召唤兽拥有者实例
def GetSummonOwnerDetel(summonNPC):
#获取对象Obj类
+ if not summonNPC or not hasattr(summonNPC, "GetOwner"):
+ return
+
curSummonOwner = summonNPC.GetOwner()
if curSummonOwner == None:
--
Gitblit v1.8.0