xdh
2018-10-19 d83f6c94031070ebc6b7ccd33addc669ac94775a
2180 【主干】【1.1.0】【1.0.18】单人进入渡劫副本没有刷怪
1个文件已修改
8 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_DuJie.py 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_DuJie.py
@@ -195,7 +195,7 @@
        
        GameWorld.DebugLog('玩家进入副本')
        
        if fbPlayerCnt == 1 or curPlayer.GetTeamLV() == IPY_GameWorld.tmlLeader:
        if lineID == 0 or fbPlayerCnt == 1 or curPlayer.GetTeamLV() == IPY_GameWorld.tmlLeader:
            __SetFBLeaderPlayer(curPlayer)
            if gameFB.GetFBStep() == FB_Step_Fighting:
                __OnDuJieFBStart(tick)
@@ -323,6 +323,7 @@
    return
def __OnDuJieFBStart(tick):
    lineID = FBCommon.GetFBPropertyMark()
    if not GameWorld.GetGameFB().GetGameFBDictByKey(DuJieFB_LeaderPlayerID):
        findLeader = False
        playerManager = GameWorld.GetMapCopyPlayerManager()
@@ -330,19 +331,20 @@
            curPlayer = playerManager.GetPlayerByIndex(index)
            if not curPlayer:
                continue
            if curPlayer.GetTeamLV() == IPY_GameWorld.tmlLeader:
            if curPlayer.GetTeamLV() == IPY_GameWorld.tmlLeader or (lineID == 1 and curPlayer.GetTeamID() == 0):
                __SetFBLeaderPlayer(curPlayer)
                findLeader = True
                break
        if not findLeader:
            GameWorld.Log('    准备倒计时已过,队长仍未进入副本!!! ')
            FBCommon.DoLogic_FBKickAllPlayer()
            return
    DuJieFBCfg = GetRealmFBTimeCfg()
    bossID = GetDuJieBossID()
    if not bossID:
        return
    mapID = GameWorld.GetMap().GetMapID()
    lineID = FBCommon.GetFBPropertyMark()
    refreshBossMark = FBCommon.GetFBLineRefreshNPC(mapID, lineID)
    NPCCustomRefresh.SetNPCRefresh(refreshBossMark, [bossID])