From 2560077959fd4d841ce35cb65e2367e568b3b08b Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 19 一月 2024 17:26:02 +0800 Subject: [PATCH] 10019 【砍树】回合战斗(调整闪避公式计算方式;灵宠及反击必命中;普攻暴击后可触发被动;调整击晕优先级提前到其他被动触发前;NPC新增触发被动方式;) 1. 调整闪避公式计算方式,改为是否闪避,简化公式; 2. 增加灵宠及反击必命中;部分触发类伤害技能可通过技能ExAttr2配置必命中; 3. 普攻暴击后可触发被动; 4. 调整击晕优先级提前到反击和其他被动触发前;不然可能导致被攻击方先触发了反击或某些被动后再被击晕;最大击晕概率配置由6000调整为9000; 5. NPC支持被击、闪避、击晕、暴击、连击、反击前、反击后可触发被动; 6. 回血量增加支持按已损失血量百分比恢复; --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py index 82737c0..319816a 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py @@ -1670,7 +1670,7 @@ # @param skillLV 技能等级 # @return None or True # @remarks 函数详细说明. -def AddBuffBySkillType(curObj , skillType , tick , skillLV=None): +def AddBuffBySkillType(curObj , skillType , tick , skillLV=None, buffOwner=None): curSkill = None if skillLV == None : @@ -1700,7 +1700,7 @@ # GameWorld.ErrLog("SkillBuff_AddBuffValue.AddBuffValue") #=========================================================================== - return BuffSkill.DoAddBuff(curObj , buffType, curSkill , tick, [addBuffValue]) + return BuffSkill.DoAddBuff(curObj , buffType, curSkill , tick, [addBuffValue], buffOwner) ## 查找技能并添加buff(不刷新) @@ -2235,6 +2235,8 @@ cureBaseValue = 0 if not tagObj else GameObj.GetMaxHP(tagObj) elif cureType == ChConfig.Def_Cure_TagAtk: cureBaseValue = 0 if not tagObj else GetCureBaseValue(tagObj, curSkill) + elif cureType == ChConfig.Def_Cure_LostHP: + cureBaseValue = max(0, GameObj.GetMaxHP(userObj) - GameObj.GetHP(userObj)) #这边写死了效果1,基本已经定型 -- Gitblit v1.8.0