xdh
2018-10-23 a608566d51391f045aa3ea595fc7bea6c72c75f2
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py
@@ -97,6 +97,13 @@
    callFunc(curNPC,HurtType,HurtID)
    return
def OnNPCSetDead(curNPC):
    callFunc = GameWorld.GetExecFunc(NPCAI, "AIType_%d.%s"%(curNPC.GetAIType(), "OnNPCSetDead"))
    if callFunc == None:
        return None
    callFunc(curNPC)
    return
def OnNPCReborn(curNPC):
    FBLogic.OnNPCRebornInFB(curNPC)
    callFunc = GameWorld.GetExecFunc(NPCAI, "AIType_%d.%s"%(curNPC.GetAIType(), "OnNPCReborn"))
@@ -199,7 +206,11 @@
            
            if curNPC == None:
                continue
            #2018.10.9修改:增加boss条件过滤,用标试点刷出来的boss也是召唤兽,放在bossAI中处理,此处不处理
            if ChConfig.IsGameBoss(curNPC):
                continue
        normal_NPC_List.append(curNPC)
    
    for curNPC in normal_NPC_List:
@@ -287,9 +298,10 @@
        if curNPC.GetType() == IPY_GameWorld.ntElf:
            continue
        
        if curNPC.GetOwner() == None:
        if curNPC.GetOwner() == None and not ChConfig.IsGameBoss(curNPC):
            #2009.8.17修改
            #如果一个召唤兽的主人为None, 划归为普通NPC, 为了减少副本中的CPU使用率
            #2018.10.9修改:增加boss条件过滤,用标试点刷出来的boss也是召唤兽,也需要处理
            continue
        
        if not curNPC.IsAlive():