From 9b825d6edd35719b9da16eb2ef263e5ac0bdedbd Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 19 七月 2019 14:14:59 +0800
Subject: [PATCH] 860312 技能命中翻X倍配置

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4517.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4517.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4517.py
index 9f98ce1..304ed07 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4517.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4517.py
@@ -15,8 +15,9 @@
 import GameWorld
 import SkillCommon
 import BuffSkill
+import IPY_GameWorld
 
-def CheckCanHappen(attacker, defender, effect, tagSkill):
+def CheckCanHappen(attacker, defender, effect, tagSkill, **skillkwargs):
     debuffState = effect.GetEffectValue(1)
     if debuffState and debuffState != SkillCommon.GetBuffStateType(tagSkill):
         return False
@@ -48,6 +49,9 @@
         return
     
     BuffSkill.SetBuffLayer(attacker, findBuff, findBuff.GetLayer()-1, skillTypeID=findSkill.GetSkillTypeID())
+    if defender.GetGameObjType() != IPY_GameWorld.gotPlayer:
+        # 不反弹NPC
+        return
 
     # 给对方加buff
     BuffSkill.DoAddBuff(defender, SkillCommon.GetBuffType(tagSkill), tagSkill, 

--
Gitblit v1.8.0