From 1fb6bd99f2119db7dd05de12979635e4b648707b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 06 七月 2022 16:23:04 +0800
Subject: [PATCH] 9652 【越南】【yn_ver1】【主干】【qkbt52】【x7bt5】【bt7】增加共享视野层(仙盟boss、骑宠boss支持共享视野层)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
index 29046dd..60b42ca 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -543,7 +543,7 @@
                         GameWorld.Log("        非协助伤血玩家没有攻击boss次数,不计!playerID=%s" % playerID, self.npcID, self.lineID)
                     return False
                 
-            if player.GetInitOK() and (not player.GetVisible() or player.GetSightLevel() != self.curNPC.GetSightLevel()):
+            if player.GetInitOK() and (not player.GetVisible() or not AttackCommon.CheckSightLevel(player, self.curNPC)):
                 GameWorld.DebugLog("伤血玩家不可见,不计!playerID=%s" % playerID, self.npcID, self.lineID)
                 if self.logDetail:
                     GameWorld.Log("        伤血玩家不可见,不计!playerID=%s" % playerID, self.npcID, self.lineID)
@@ -691,7 +691,7 @@
                     playerDisableReason[playerID] = "dead"
                     continue
                 
-                if not player.GetVisible() or player.GetSightLevel() != curNPC.GetSightLevel():
+                if not player.GetVisible() or not AttackCommon.CheckSightLevel(player, curNPC):
                     playerDisableReason[playerID] = "no visible or sightLevel different"
                     continue
                 

--
Gitblit v1.8.0