From 91c306890bf90cd86de289478762e5ea55c55ff2 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 24 十一月 2018 15:39:36 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
index 9cdb1eb..5eece2f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/BaseAttack.py
@@ -557,6 +557,10 @@
#关系
relation = GetTagRelation(attacker, defender, curSkill, tick)
return relation[0] == ChConfig.Type_Relation_Friend
+ elif curSkillUseTag == ChConfig.Def_UseSkillTag_AppointNPC:
+ if defender and GameObj.GetHP(defender) > 0 :
+ return True
+ return False
return __CheckCanAttack(attacker , defender , curSkill , tick)
--
Gitblit v1.8.0