From 5ce48751a93972c784f1fd32b5e8b2c1a2c823b1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 29 十月 2020 18:46:42 +0800
Subject: [PATCH] 4793 【主干】【BT】【长尾】跨服匹配机器人太脆了(召唤木桩时没有同步设置最大生命值的bug);
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 0847a5c..023265f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -2238,6 +2238,8 @@
if hp or hpEx:
summonNPC.SetHP(hp)
summonNPC.SetHPEx(hpEx)
+ summonNPC.SetMaxHP(hp)
+ summonNPC.SetMaxHPEx(hpEx)
summonNPC.NotifyAppear() # 最终统一通知NPC出现
playerPriWoodNPCList.append(summonNPC)
--
Gitblit v1.8.0