From 0c27822ef5e6c67782ed143a4ff03ecfbdfda1fb Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 23 五月 2022 16:52:58 +0800 Subject: [PATCH] 9415 【BT】【后端】古神战场(副本内功能完整版本) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_NormalNPC.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_NormalNPC.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_NormalNPC.py index 8cabede..0a5446e 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_NormalNPC.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Player_Attack_NormalNPC.py @@ -62,8 +62,13 @@ # @remarks 函数详细说明. def GetTagRelation(curPlayer, curTagNormalNPC, skill, tick): defenderCampType = NPCCommon.GetFaction(curTagNormalNPC) + curFaction = curPlayer.GetFaction() + if curFaction and defenderCampType: + if curFaction == defenderCampType: + return ChConfig.Type_Relation_Friend , ChConfig.Def_PASysMessage_None + return ChConfig.Type_Relation_Enemy , ChConfig.Def_PASysMessage_None #不攻击正义的需要去保护的 这里有女神和守卫 - if defenderCampType == ChConfig.CampType_Justice: + elif defenderCampType == ChConfig.CampType_Justice: return ChConfig.Type_Relation_Friend, ChConfig.Def_PASysMessage_None #私有木桩只能自己打自己的 -- Gitblit v1.8.0