From 0670fd0e12f80b02098f0a9eafbb5a60db014e78 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 27 八月 2018 21:07:43 +0800 Subject: [PATCH] fix:模板16类暴风雪技能,通过召唤兽来实现攻击方式,在计算时完全以主人属性计算伤害,召唤技能效果1013只影响攻击百分比 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 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 0708705..ca2582a 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 @@ -1562,8 +1562,21 @@ if tick - defObj.GetDictByKey(ChConfig.Def_PlayerKey_SomersaultTime) < 500: return 0, ChConfig.Def_HurtType_Miss + summonAtkPer = 1 # 召唤继承提高基础攻击力,取表 + if atkObj.GetGameObjType() == IPY_GameWorld.gotNPC and atkObj.GetGameNPCObjType() == IPY_GameWorld.gnotSummon: + summonAtkPer = atkObj.GetDictByKey(ChConfig.Def_GameObjKey_InheritOwner) + if summonAtkPer > 0: + # 暴风雪类召唤兽转化为主人计算伤害 + atkObj = NPCCommon.GetSummonOwnerDetel(atkObj) + if not atkObj: + return 0, ChConfig.Def_HurtType_Miss + + summonAtkPer = summonAtkPer*1.0/ChConfig.Def_MaxRateValue + #GameWorld.DebugLog("召唤兽取主人---------%s-%s-%s-%s"%(atkObj.GetID(), atkSkillPer, atkSkillValue, summonAtkPer)) + atkObjType = atkObj.GetGameObjType() defObjType = defObj.GetGameObjType() + atkType = GetBattleType(atkObj, curSkill) happenState = happenState if happenState else SkillShell.GetHappenState(curSkill) @@ -1666,8 +1679,8 @@ rand = random.random() #种子数 0~1 #------- 攻击方 - aMinAtk = atkObj.GetMinAtk() # 攻击方最小攻击 - aMaxAtk = atkObj.GetMaxAtk() # 攻击方最大攻击 + aMinAtk = atkObj.GetMinAtk() * summonAtkPer # 攻击方最小攻击 + aMaxAtk = atkObj.GetMaxAtk() * summonAtkPer # 攻击方最大攻击 aIceAtk = atkObj.GetIceAtk() # 冰攻, 元素真伤, 玩家及NPC通用 aIceAtk += PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(atkObj, defObj, curSkill, ChConfig.TriggerType_AddIceAtk) -- Gitblit v1.8.0