From 8deff6bf388a0719798ab943441b02b5703b4d1a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 17 九月 2018 15:51:19 +0800
Subject: [PATCH] 3597 【后端】可以向已有队伍的在线玩家发送组队邀请; 邀请附近玩家列表推荐规则修改(原来只推荐无队伍玩家,修改为可推荐有队伍的玩家,脱机及准备中的玩家不推荐)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py
index 1a40f3a..c07e615 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py
@@ -82,7 +82,9 @@
 #  @return None
 def DoEnterFB(curPlayer, tick):
     playerID = curPlayer.GetPlayerID()
-
+    if curPlayer.GetHP() == 0:
+        PlayerControl.PlayerLeaveFB(curPlayer)
+        return
     # 设置副本公共属性的单独处理,防止队员进入后被修改
     if not FBCommon.GetHadSetFBPropertyMark():
         lineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ReqFBFuncLine)
@@ -101,7 +103,8 @@
             infoDict = {"MapID":mapID,"LineID":lineID}
             for moneyType, moneyNum in costMoneyList:
                 if not PlayerControl.PayMoney(curPlayer, moneyType, moneyNum, ChConfig.Def_Cost_EnterFB, infoDict):
-                    GameWorld.DebugLog("仙玉不足!costGold=%s" % costGold)
+                    GameWorld.Log("仙玉不足!costGold=%s" % costGold)
+                    PlayerControl.PlayerLeaveFB(curPlayer)
                     return
         EventReport.WriteEvent_FB(curPlayer, ChConfig.Def_FBMapID_BossHome, lineID, ChConfig.CME_Log_Start)
     

--
Gitblit v1.8.0