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/NPCHurtMgr.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtMgr.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtMgr.py index 116f46a..ca14f08 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtMgr.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtMgr.py @@ -239,7 +239,7 @@ '''第一个可攻击的最大伤血对象 @return: atkPlayer, hurtType, hurtID ''' - + import AttackCommon atkPlayer, atkHurtType, atkHurtID = None, 0, 0 curNPC = self.curNPC refreshPoint = curNPC.GetRefreshPosAt(curNPC.GetCurRefreshPointIndex()) @@ -262,7 +262,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