hxp
2023-11-08 1a5b56fd1738f4b01831a12587e1e34ee5def2ff
9912 [BT0.1]BOSS凭证(天玄丹buff支持多层,可批量使用)
3个文件已修改
17 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -1275,10 +1275,9 @@
    elif ChConfig.IsGameBoss(npcData):
        GameWorld.ErrLog("Boss没有掉落物品,NPCID=%s" % (npcID), dropPlayer.GetPlayerID())
        
    if tianxuanState:
        GameWorld.DebugLog("    去除天玄丹buff", playerID)
        tick = GameWorld.GetGameWorld().GetTick()
        BuffSkill.DelBuffBySkillID(dropPlayer, ChConfig.Def_SkillID_TianxuanBuff, tick)
    if tianxuanBuff and tianxuanState:
        GameWorld.DebugLog("    去除天玄丹buff: Layer=%s" % tianxuanBuff.GetLayer(), playerID)
        BuffSkill.SetBuffLayer(dropPlayer, tianxuanBuff, max(tianxuanBuff.GetLayer() - 1, 0), True, ChConfig.Def_SkillID_TianxuanBuff, isSync=True)
        
    return dropIDList, auctionIDList, dropMoneyCnt, moneyValue
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
@@ -925,7 +925,7 @@
# 当层级为0的时候删除此buff
def SetBuffLayer(gameObj, buff, layer, delBuff=True, skillTypeID=0, disappearTrigger=True):
def SetBuffLayer(gameObj, buff, layer, delBuff=True, skillTypeID=0, disappearTrigger=True, isSync=False):
    buff.SetLayer(layer)
    if layer == 0 and delBuff:
        tick = GameWorld.GetGameWorld().GetTick()
@@ -942,7 +942,11 @@
        elif curObjType == IPY_GameWorld.gotNPC:
            npcControl = NPCCommon.NPCControl(gameObj)
            npcControl.RefreshNPCAttrState()
    else:
        curObjType = gameObj.GetGameObjType()
        if isSync and curObjType == IPY_GameWorld.gotPlayer:
            buffType = SkillCommon.GetBuffType(buff.GetSkill())
            PYSync_RefreshBuff(gameObj, buff, buffType)
    return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
@@ -1765,7 +1765,7 @@
#    if buffSkillLV > curSkillLV:
#        return
        
    if not buffSkill.GetLastTime():
    if not buffSkill.GetLastTime() and not BuffSkill.GetBuffMaxLayer(buffSkill):
        #GameWorld.DebugLog("无时间限制buff,只要存在buff,则无需重复添加")
        return