5071 【BT2】【主干】【gt_1.100.7】外网出现boss无法死亡。(优化死亡检查日志明细)
1个文件已修改
9 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -484,6 +484,8 @@
            elif hurtType == ChConfig.Def_NPCHurtTypeTeam:
                teamID = hurtID
                mapTeamPlayerIDList = PlayerTeam.GetMapTeamPlayerIDList(teamID)
                if self.logDetail:
                    GameWorld.Log("    teamID=%s, mapTeamPlayerIDList=%s" % (teamID, mapTeamPlayerIDList))
                for teamPlayerID in mapTeamPlayerIDList:
                    if self.__UnAssistPlayerHurtValidLogic(teamPlayerID, refreshPoint, tick):
                        hurtPlayerDict[teamPlayerID] = teamID
@@ -558,7 +560,7 @@
            if not self.__GetIsInRefreshPoint(player.GetPosX(), player.GetPosY(), refreshPoint):
                GameWorld.DebugLog("伤血玩家不在boss范围内,不计!playerID=%s" % playerID, self.npcID, self.lineID)
                if self.logDetail:
                    GameWorld.DebugLog("        伤血玩家不在boss范围内,不计!playerID=%s" % playerID, self.npcID, self.lineID)
                    GameWorld.Log("        伤血玩家不在boss范围内,不计!playerID=%s" % playerID, self.npcID, self.lineID)
                return False
            
            return True
@@ -723,6 +725,8 @@
    
    def __GetIsInRefreshPoint(self, curPosX, curPosY, refreshPoint):
        if not refreshPoint:
            if self.logDetail:
                GameWorld.Log("        not refreshPoint=%s" % refreshPoint, self.npcID, self.lineID)
            return False
        
        if (curPosX >= refreshPoint.GetPosX() - refreshPoint.GetMoveDist() and
@@ -731,6 +735,9 @@
                curPosY <= refreshPoint.GetPosY() + refreshPoint.GetMoveDist()):
            return True
        
        if self.logDetail:
            GameWorld.Log("        not in refreshPoint curPosX=%s,curPosY=%s,rPosX=%s,rPosY=%s,rDict=%s"
                          % (curPosX, curPosY, refreshPoint.GetPosX(), refreshPoint.GetPosY(), refreshPoint.GetMoveDist()), self.npcID, self.lineID)
        return False
    
    def __UpdBossShuntInfo(self, mapID, hurtPlayerDict, tick):