From 3432170bf134002130d01f905fe4abe67957a10e Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 29 四月 2019 17:50:28 +0800 Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能 - 优化灼烧, 模板44修复通知对象 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py index 338b59f..76cd193 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py @@ -88,6 +88,10 @@ def GetBuffReplaceType(curSkill): return curSkill.GetCanRepeatTime()/10 +# buff根据释放者不同判断是否共存buff,百位数 Def_Buff_NoCoexist +def GetBuffCoexistType(curSkill): + return curSkill.GetCanRepeatTime()/10%10 + def GetBuffMaxLayer(curSkill): layerMaxCnt = 0 hasEffect = SkillCommon.GetSkillEffectByEffectID(curSkill, ChConfig.Def_Skill_Effect_LayerCnt) @@ -148,6 +152,8 @@ curSkillLV = curSkill.GetSkillLV() #替换模式 buffReplaceType = GetBuffReplaceType(curSkill) + #共存模式 + buffCoexistType = GetBuffCoexistType(curSkill) #时间处理类型 buffRepeatTimeType = GetBuffRepeatTimeType(curSkill) #用于BUFF满的时候处理刷新逻辑 @@ -176,7 +182,7 @@ if buffSkill.GetSkillTypeID() != curSkillTypeID: continue - if buffReplaceType == ChConfig.Def_Buff_Coexist and buffOwner: + if buffCoexistType == ChConfig.Def_Buff_Coexist and buffOwner: #可同时存在的buff,判断释放者是否不一样 if buffSkill.GetOwnerID() != buffOwner.GetID() or buffSkill.GetOwnerType() != buffOwner.GetGameObjType(): continue -- Gitblit v1.8.0