From 1ea23ac831a440e8eb302b199ab1abdadfec184c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 11 四月 2024 16:30:49 +0800 Subject: [PATCH] 10019 【砍树】回合战斗(增加buff被动效果ID 4543、4544、4545、4546;) 1. 增加buff被动效果ID4543: 被暴击附加额外伤害百分比; 2. 增加buff被动效果ID4544: 触发时减少buff层数; 3. 增加buff被动效果ID4545: 灵宠技能释放成功触发技能; 4. 增加buff被动效果ID4546: 灵宠释放技能后触发删除本buff; 5. 技能被动效果ID 5000,支持每X回合配置; 6. buff替换方式增加方式3 - 只取最高,相同或低级的则不处理,减少长时buff无用的重复添加逻辑; --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py | 7 ++++++- 1 files changed, 6 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 aa21f06..742985c 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py @@ -219,7 +219,12 @@ if buffSkillLV > curSkillLV: # 只取最好的, 不可加直接退出 return False - + elif buffReplaceType == ChConfig.Def_Buff_Replace_BetterOnly: + if buffSkillLV >= curSkillLV: + # 只取最好的, 等级相同也不处理,适用于长时buff,防止相同等级时重复添加buff,减少处理逻辑及封包同步 + #GameWorld.DebugLog("已存在buff,不处理! skillID=%s" % buffSkillID) + return + resultTime = -1 #不改变时间的情况 if buffRepeatTimeType == ChConfig.Def_BuffTime_Reset: # 重置时间 -- Gitblit v1.8.0