From ffa41c1247e91469ce1f5e9aa197347e213605fa Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 九月 2020 14:45:49 +0800
Subject: [PATCH] 4726 【主干】【长尾】【BT】争夺模式下 乾元雷(50900)对非目标造成了伤害
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 6 ++++++
1 files changed, 6 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 10ef793..cc352aa 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
@@ -2781,6 +2781,12 @@
if CanAlikeTeam(curPlayer, tagPlayer):
return ChConfig.Type_Relation_Friend, ChConfig.Def_PASysMessage_NotAttackTeam
+ selectObjType = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_SelectObjType)
+ selectObjID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_SelectObjID)
+ if selectObjType != IPY_GameWorld.gotPlayer or selectObjID != tagPlayer.GetPlayerID():
+ #GameWorld.DebugLog("防卫模式不可攻击非选中目标! selectObjType=%s,selectObjID=%s" % (selectObjType, selectObjID))
+ return ChConfig.Type_Relation_Friend, ChConfig.Def_PASysMessage_None
+
# 全体模式
elif curPlayerAttackMode == IPY_GameWorld.amAll:
pass
--
Gitblit v1.8.0