From 0694d11e90e405f2f4e178a5500afef1f9732a17 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 04 三月 2020 15:46:19 +0800
Subject: [PATCH] 4678 【主干】切换到中立地图安全区进入个人boss无法对boss造成伤害

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py |    4 +++-
 1 files changed, 3 insertions(+), 1 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 221053e..c902e92 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
@@ -821,8 +821,10 @@
     #if not CheckCanAttackNPCByLV(attacker, defender):
     #    return False
     
+    isWoodPile = True if (defObjType == IPY_GameWorld.gotNPC and defender.GetType() in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]) \
+        or (atkObjType == IPY_GameWorld.gotNPC and attacker.GetType() in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]) else False
     #不可攻击区域
-    if not CheckCanAtkByArea(attacker, defender):
+    if not isWoodPile and not CheckCanAtkByArea(attacker, defender):
         return False
 
     #验证FB中是否可攻击, 攻击和仇恨判断会调用该函数,判定不可攻击的情况

--
Gitblit v1.8.0