From f15a181fbf2b61631b51e5e3a431c7cff6b15029 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 九月 2020 11:27:48 +0800
Subject: [PATCH] 8483 【后端】【主干】【changwei】【bt】协助方和被协助方任何模式不会互相造成伤害

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
index 72a5b60..10ef793 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -2785,6 +2785,10 @@
     elif curPlayerAttackMode == IPY_GameWorld.amAll:
         pass
     
+    # 协助关系不可攻击
+    if NPCHurtManager.IsAssistRelation(curPlayer, tagPlayer):
+        return ChConfig.Type_Relation_Friend, ChConfig.Def_PASysMessage_NotAttackTeam
+        
     # 以下为所属区域的一些特殊处理
     #普通区
     if curPlayerAreaType == IPY_GameWorld.gatNormal:

--
Gitblit v1.8.0