From bb652eeae4e39ee66f342975a2804ae305f0f969 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 11 十二月 2020 10:26:41 +0800
Subject: [PATCH] 4869 【主干】【长尾】【BT】七日巡礼重置逻辑优化;运营活动所处天索引逻辑优化;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/KillScreenNPC.py |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/KillScreenNPC.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/KillScreenNPC.py
index 1917405..94a6d4a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/KillScreenNPC.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/KillScreenNPC.py
@@ -23,7 +23,6 @@
 import AttackCommon
 import GameObj
 import NPCCommon
-import GameLogic_ZhuXianTower
 
 
 ## GM命令执行入口
@@ -33,11 +32,6 @@
 #  @remarks 函数详细说明.
 def OnExec(curPlayer, playerList):
 
-    if curPlayer.GetMapID() == ChConfig.Def_FBMapID_ZhuXianTower:
-        #诛仙塔击杀怪
-        GameWorld.GetGameFB().SetGameFBDict(GameLogic_ZhuXianTower.FBDict_RemainHP, 1)
-        return
-    
     isMapAllNPC = 0
     if len(playerList) > 0:
         isMapAllNPC = playerList[0]
@@ -87,6 +81,8 @@
         return
     if not curNPC.GetVisible():
         return
+    if curPlayer.GetSightLevel() != curNPC.GetSightLevel():
+        return
     curHP = GameObj.GetHP(curNPC)
     AttackCommon.NPCAddObjInHurtList(curPlayer, curNPC, curHP, curHP)
     

--
Gitblit v1.8.0