From 18a10a74bd18363b8a325044d0cec5e4838531a3 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期日, 05 五月 2019 10:55:50 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py index 6dac2ad..ffae739 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py @@ -2679,6 +2679,11 @@ callFunc = GameWorld.GetExecFunc(GameBuffs, "Buff_%s.%s"%(moduleSuffix, "OnCalcBuffEx")) if callFunc: callFunc(objDetel, curEffect, allAttrList[index], curBuff) + + # 持续性属性变化的buff,目前只有持续减益 + callFunc = GameWorld.GetExecFunc(GameBuffs, "BuffProcess_%s.%s"%(moduleSuffix, "OnCalcBuffEx")) + if callFunc: + callFunc(objDetel, curEffect, allAttrList[index], curBuff) return ## 获得buff效果的计算模块文件后缀 @@ -2926,15 +2931,15 @@ def CalcBuffers_Effect(curPlayer, allAttrList, calcEffectIDList=[]): for buffType in range(IPY_GameWorld.bfBuff, IPY_GameWorld.btBufMax): + #这些类型不影响玩家计算属性 + if buffType in [IPY_GameWorld.bfProcessBuff, #IPY_GameWorld.bfProcessDeBuff, + IPY_GameWorld.bfMapBuff, + IPY_GameWorld.bfEquipBuff]: + continue + buffTuple = SkillCommon.GetBuffManagerByBuffType(curPlayer, buffType) #通过类型获取目标的buff管理器为空,则跳出 if buffTuple == (): - continue - - #这些类型不影响玩家计算属性 - if buffType in [IPY_GameWorld.bfProcessBuff, - IPY_GameWorld.bfProcessDeBuff, IPY_GameWorld.bfMapBuff, - IPY_GameWorld.bfEquipBuff]: continue buffManager = buffTuple[0] -- Gitblit v1.8.0