From ba4dd9775177975f46867fa979c06e92089511d6 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 01 三月 2019 09:48:09 +0800
Subject: [PATCH] 3036 【主干】【1.6】集市上架物品可以复制物品

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4517.py |    4 ++++
 1 files changed, 4 insertions(+), 0 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..40b0865 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,6 +15,7 @@
 import GameWorld
 import SkillCommon
 import BuffSkill
+import IPY_GameWorld
 
 def CheckCanHappen(attacker, defender, effect, tagSkill):
     debuffState = effect.GetEffectValue(1)
@@ -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