From 4ef8a162160e3028d4a8382304382872c79a44f9 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期四, 11 四月 2019 20:40:02 +0800 Subject: [PATCH] 6494 子 【开发】【2.0】战斗公式增加普攻伤害和技能伤害 / 【后端】【2.0】战斗公式增加普攻伤害和技能伤害属性 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py index 2c511af..73586cc 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py @@ -1957,9 +1957,17 @@ # 改变技能伤害 atkSkillPer, atkSkillValue = ChangeSkillHurt(atkObj, defObj, curSkill, atkSkillPer, atkSkillValue) - atkSkillPer = ChangeSkillHurtPer(atkObj, defObj, curSkill, atkSkillPer) + # --- 新增普通攻击的数值和技能攻击的数值,根据类型各自计算 + if atkObjType == IPY_GameWorld.gotPlayer: + if not curSkill or curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_NormalAttack: + atkSkillPer += PlayerControl.GetNormalHurtPer(atkObj) + atkSkillValue += PlayerControl.GetNormalHurt(atkObj) + elif curSkill.GetFuncType() in [ChConfig.Def_SkillFuncType_FbSkill, ChConfig.Def_SkillFuncType_FbPassiveSkill]: + atkSkillPer += PlayerControl.GetFabaoHurtPer(atkObj) + atkSkillValue += PlayerControl.GetFabaoHurt(atkObj) + # atkSkillPer 包含普攻,所以不是用技能增强处理 atkSkillPer += PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(atkObj, defObj, curSkill, ChConfig.TriggerType_AttackAddSkillPer) -- Gitblit v1.8.0