8346 【恺英】【后端】协助系统(玩家看到boss才同步伤血封包;修复玩家PK时buff掉血添加npc伤血列表报错)
2个文件已修改
7 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -831,13 +831,15 @@
        bossHurtInfoPack.HurtValueList = hurtValueList
        bossHurtInfoPack.HurtCount = len(hurtValueList)
        
        curNPC = self.curNPC
        assistHurtValueListDict = {}
        copyPlayerManager = GameWorld.GetMapCopyPlayerManager()
        for playerID in syncPlayerIDList:
            player = copyPlayerManager.FindPlayerByID(playerID)
            if not player:
                continue
            if not player.CanSeeOther(curNPC):
                continue
            if playerID in self.__noAssitPlayerIDDict:
                assTagPlayerID = playerID
            elif playerID in self.__assistPlayerIDDict:
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
@@ -1339,11 +1339,12 @@
        
    # 2013-1-3,去除npc攻击造成的伤血记录
    if attackerOwner != None and attackerOwner.GetGameObjType() == IPY_GameWorld.gotPlayer:
        AttackCommon.NPCAddObjInHurtList(attackerOwner, curObj, curObjHP_BeforeAttack, lostValue)
        #CheckAddPoisonAtkBuff(skillTypeID, attackerOwner, curObj, tick)
        
        if curObjType == IPY_GameWorld.gotPlayer:
            AttackCommon.OnPVPDamage(attackerOwner, lostValue, curObj, "SkillLostHP")
        elif curObjType == IPY_GameWorld.gotNPC:
            AttackCommon.NPCAddObjInHurtList(attackerOwner, curObj, curObjHP_BeforeAttack, lostValue)
    #统一调用攻击结束动作
    if isDoAttackResult: