From 43ec61799c5cc015c49ca6d0ace4b356f50a95af Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 16 五月 2019 15:40:25 +0800
Subject: [PATCH] 6805 【后端】【2.0】副本前端化(增加可否进入自定义场景通用判断,增加回包,木桩怪上限调整为10个)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetNPCHP.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetNPCHP.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetNPCHP.py
index 49ffca8..b57155c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetNPCHP.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetNPCHP.py
@@ -14,10 +14,10 @@
 # 详细描述: 设置屏幕周围NPC血量
 #
 #---------------------------------------------------------------------
-"""Version = 2015-03-22 23:00"""
+#"""Version = 2015-03-22 23:00"""
 #---------------------------------------------------------------------
 
-
+import IpyGameDataPY
 import IPY_GameWorld
 import GameWorld
 import ChConfig
@@ -75,7 +75,9 @@
     return
 
 def __GMSetNPCHP(curPlayer, curNPC, setHP):
-    GameObj.SetHP(curNPC, setHP)
+    npcID = curNPC.GetNPCID()
+    isByTime = True if IpyGameDataPY.GetIpyGameDataNotLog("NPCTimeLostHP", npcID) else False
+    GameObj.SetHP(curNPC, setHP, isByTime=isByTime)
     curNPC.Notify_HPEx()
     GameWorld.DebugAnswer(curPlayer, "SetNPCHP ID=%s(%s),HP=%s" % (curNPC.GetID(), curNPC.GetNPCID(), setHP))
     return

--
Gitblit v1.8.0