From 8d37b77678ea5dc0703354a6daaa1207ce6e8be3 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 28 六月 2019 21:56:45 +0800 Subject: [PATCH] 7661 【后端】【主干】屏蔽多余日志输出(非拍品转拍品ErrLog改DebugLog,重刷传奇属性ErrLog改DebugLog) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4075.py | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4075.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4075.py new file mode 100644 index 0000000..b70950c --- /dev/null +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4075.py @@ -0,0 +1,29 @@ +#!/usr/bin/python +# -*- coding: GBK -*- +# +##@package +# +# @todo: 重击造成每点(攻速-100)*1%重击伤害 +# +# @author: Alee +# @date 2019-5-17 下午03:19:44 +# @version 1.0 +# +# @note: +# +#--------------------------------------------------------------------- + +import PlayerControl +import AttackCommon + +def CheckCanHappen(attacker, defender, effect, curSkill): + if effect.GetEffectValue(1): + # 只针对第一目标 + if AttackCommon.GetFirstDefenderID(attacker) != defender.GetID(): + return False + return True + + +def GetValue(attacker, defender, effect): + return max(PlayerControl.GetAtkSpeed(attacker) - 10000, 0)/100*effect.GetEffectValue(0) + -- Gitblit v1.8.0