From 8145e33b8bac3d5852d08e3de8128ae8db3a6d4c Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 01 二月 2019 14:07:52 +0800
Subject: [PATCH] 6188 【后端】【1.5.200】诛仙塔爬塔补偿

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MagicWeapon.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MagicWeapon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MagicWeapon.py
index b53635b..ab094da 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MagicWeapon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MagicWeapon.py
@@ -29,6 +29,7 @@
 import EventReport
 import PlayerGoldGift
 import PlayerMagicWeapon
+import ChPlayer
 
 #---副本配置对应key值---
 (
@@ -328,7 +329,10 @@
     playerManager = GameWorld.GetMapCopyPlayerManager()
     if playerManager.GetPlayerCount() > 0:
         curPlayer = playerManager.GetPlayerByIndex(0)
-        curPlayer.SetHP(curPlayer.GetMaxHP())
+        if curPlayer.GetHP() <=0:
+            ChPlayer.PlayerRebornByType(curPlayer, ChConfig.rebornType_System, tick)
+        else:
+            curPlayer.SetHP(curPlayer.GetMaxHP())
         DoFBHelp(curPlayer, tick)
     
     FBCommon.SetFBStep(FB_Step_Fighting, tick)

--
Gitblit v1.8.0