From c6d60d6bf6e025b80e8200c0b69b9a456c87a4bd Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 04 七月 2019 15:49:44 +0800
Subject: [PATCH] 7809 【2.0.200】【后端】雷罚BOSS取消协助功能

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