From b4ba68e227370e3dc9dfca06ce5b9c8225bf4faa Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期六, 24 十一月 2018 00:13:49 +0800 Subject: [PATCH] 4997 【后端】【1.3】冰晶矿脉AI--技能指定NPCID使用 --- 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