4906 【主干】【BT】【BT2】【BTZF】跨服地图报错查看(通知buff报错输出技能ID);
1个文件已修改
7 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
@@ -389,7 +389,7 @@
    # 通知客户端
    #buffState.Sync_AddBuffEx()
    if isNotify:
        PYSync_RefreshBuff(curObj, addBuff, SkillCommon.GetBuffType(curSkill), notifyAll=False, owner = buffOwner)
        PYSync_RefreshBuff(curObj, addBuff, SkillCommon.GetBuffType(curSkill), notifyAll=False, owner = buffOwner, errSkillID=skillID)
        
    #添加BUFF后的特殊处理
    DoAddBuffOver(curObj, curSkill, addBuff, buffOwner, tick)
@@ -1003,7 +1003,7 @@
    
    return DelBuffBySkillID(curObj, skillID, tick)
def PYSync_RefreshBuff(gameObj, curBuff, buffType, notifyAll=True, owner = None):
def PYSync_RefreshBuff(gameObj, curBuff, buffType, notifyAll=True, owner = None, errSkillID=None):
    try:
        sendPack = ChNetSendPack.tagObjAddBuff()
        if not curBuff:
@@ -1033,6 +1033,7 @@
        else:
            PlayerControl.PyNotifyAll(gameObj, sendPack, notifySelf=True, notifyCnt=-1)
    except:
        pass
        GameWorld.RaiseException("PYSync_RefreshBuff error errSkillID=%s" % errSkillID)
        return