From 330a469b0af447e7d3db2b2e047a3f4c10278ea8 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期六, 22 六月 2019 19:26:57 +0800 Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能 - 重击是暴击的1.5倍 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4074.py | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4074.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4074.py new file mode 100644 index 0000000..8e3543f --- /dev/null +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4074.py @@ -0,0 +1,28 @@ +#!/usr/bin/python +# -*- coding: GBK -*- +# +##@package +# +# @todo: 自身每存在1个增益buff,增加XX%技能伤害,上限增加200% +# +# @author: Alee +# @date 2019-5-17 下午05:25:38 +# @version 1.0 +# +# @note: +# +#--------------------------------------------------------------------- + +import ChConfig +import IPY_GameWorld +import AttackCommon +def CheckCanHappen(attacker, defender, effect, curSkill): + if effect.GetEffectValue(2): + # 只针对第一目标 + if AttackCommon.GetFirstDefenderID(attacker) != defender.GetID(): + return False + return True + +def GetValue(attacker, defender, effect): + + return min(effect.GetEffectValue(0)*attacker.GetBuffState().GetBuffCount(), effect.GetEffectValue(1)) -- Gitblit v1.8.0