hxp
2020-01-09 f38f1d13f83bd005eab8a101173c916d03163dc7
8346 【恺英】【后端】协助系统(修复封魔坛协助进错线路bug)
2个文件已修改
14 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAssist.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -924,11 +924,19 @@
    defendHurtList.Clear()
    return
def GetBossLineID(npcID):
    sealDemonIpyData = IpyGameDataPY.GetIpyGameDataNotLog("SealDemon", npcID)
    if sealDemonIpyData:
        lineID = sealDemonIpyData.GetLineID()
    else:
        lineID = GameWorld.GetGameWorld().GetLineID()
    return lineID
def DeletePlayerHurtList(curNPC):
    ## 删除伤血列表
    lineID = GameWorld.GetGameWorld().GetLineID()
    objID = curNPC.GetID()
    npcID = curNPC.GetNPCID()
    lineID = GetBossLineID(npcID)
    key = (lineID, objID, npcID)
    if key in PyGameData.g_npcHurtDict:
        hurtList =PyGameData.g_npcHurtDict.pop(key)
@@ -938,9 +946,9 @@
def GetPlayerHurtList(curNPC):
    ## 获取伤血列表,可能为None
    lineID = GameWorld.GetGameWorld().GetLineID()
    objID = curNPC.GetID()
    npcID = curNPC.GetNPCID()
    lineID = GetBossLineID(npcID)
    return GetPlayerHurtListEx(lineID, objID, npcID)
def GetPlayerHurtListEx(lineID, objID, npcID):
    ## 获取伤血列表,可能为None
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAssist.py
@@ -85,7 +85,7 @@
    
    npcLV = curNPC.GetLV()
    mapID = curPlayer.GetMapID()
    lineID = GameWorld.GetGameWorld().GetLineID()
    lineID = NPCHurtManager.GetBossLineID(npcID)
    queryData = [mapID, lineID, npcID, objID, npcLV]
    QueryGameServer_PlayerAssist(playerID, "RequestAssistBoss", queryData)
    return