4952 【主干】【BT2】【BT】【BTZF】获取召唤兽NPC主人报错(防范取不到属性GetOwner)
1个文件已修改
3 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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: