From ee8463d3e723446c652324e398582252f955a8db Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 14 一月 2019 19:21:13 +0800
Subject: [PATCH] 5805 【后端】【1.5】新增增加跨服匹配次数的道具

---
 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