From 5fbe2838bad7c59deb06763f403019f6267dd9dc Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 29 五月 2019 10:22:32 +0800
Subject: [PATCH] 6995 【后端】【2.0】新增任务事件和效果值

---
 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