From 80cec3121d7ea24123404d2b0dc95c603b780bcd Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 20 五月 2019 21:40:52 +0800
Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能
---
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