From 5a175a55e3f51458993ec66f59b1c18a8c354d4d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 19 二月 2020 17:23:21 +0800
Subject: [PATCH] 8374 【后端】【主干】通知客户端攻击封包增加专精技能(改为用扩展属性 ExAttr7、ExAttr8 通知)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4092.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4092.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4092.py
index d30a4e2..128b406 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4092.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4092.py
@@ -3,7 +3,7 @@
#
##@package
#
-# @todo: 使用技能后减少印记数量 消耗模式0:固定个数,1.大于1小于限制个数可释放
+# @todo: 使用技能后减少印记数量 消耗模式0:固定个数,1.大于1可释放,消耗个数大于1小于等于限制个数
#
# @author: Alee
# @date 2019-4-26 下午05:52:27
@@ -20,6 +20,9 @@
delType = effect.GetEffectValue(1)
if delType == 0:
+ if PlayerControl.GetYinjiCnt(attacker) < effect.GetEffectValue(0):
+ return False
+
PlayerYinji.SubYinji(attacker, effect.GetEffectValue(0))
elif delType == 1:
PlayerYinji.SubYinji(attacker, min(PlayerControl.GetYinjiCnt(attacker), effect.GetEffectValue(0)))
--
Gitblit v1.8.0