8346 【恺英】【后端】协助系统(修复同地图有伤害队员不在boss区域无法获得归属bug;修复第一名伤血无归属玩家时,会默认给其他玩家归属bug)
1个文件已修改
8 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -5314,7 +5314,6 @@
                
                if curTeamPlayer.GetCopyMapID() == GameWorld.GetGameWorld().GetCopyMapID() \
                    and (not hurtList or hurtList.HaveHurtValue(curTeamPlayer.GetPlayerID()))\
                    and self.GetIsInRefreshPoint(curTeamPlayer.GetPosX(), curTeamPlayer.GetPosY(), refreshPoint) \
                    and AttackCommon.CheckKillNPCByCnt(curTeamPlayer, curNPC, False) and curTeamPlayer.GetVisible():
                    self.__AddDropOwnerPlayerBuff(curTeamPlayer, tick)
                    killerDict[curTeamPlayer.GetPlayerID()] = curTeamPlayer
@@ -5355,8 +5354,11 @@
        if isDead:
            #key = (GameWorld.GetGameWorld().GetLineID(), curNPC.GetID(), npcID)
            teamID = curTeam.GetTeamID() if curTeam else 0
            if killerDict:
                PyGameData.g_npcKillerInfo[key] = killerDict, curTeam, hurtType, hurtID
            # 伤血归属的强制记录,即使空的也记录,因为有助战,伤血第一团队伤害可能还在但是归属玩家可能离线
            if dropOwnerType == ChConfig.DropOwnerType_MaxHurt:
                PyGameData.g_npcKillerInfo[key] = killerDict, None, hurtType, hurtID
                if not killerDict:
                    GameWorld.Log("伤血归属boss没有归属玩家!")
            elif ownerType == ChConfig.Def_NPCHurtTypeFamily:
                PyGameData.g_npcKillerInfo[key] = {}, None, hurtType, hurtID