xdh
2018-11-29 631cfe043789ddc76ddfbe19e0d01e21e26b5fbb
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBHelpBattle.py
@@ -224,8 +224,10 @@
        if not helpBattleNPC:
            continue
        objID = helpBattleNPC.GetID()
        helpBattleNPC.SetIsNeedProcess(True)
        GameWorld.Log("召唤助战成功: calledPlayerID=%s,objID=%s,fightPower=%s" % (calledPlayerID, objID, fightPower), playerID)
        gameFB.SetGameFBDict(ChConfig.Def_FB_HelpBattleFBObjID % calledPlayerID, objID)
        helpBattleNPC.SetDict(ChConfig.Def_NPC_Dict_AtkDelayTick, calledCount * 1000) # 按转换顺序每个延长1秒攻击,防止动作一致
        calledCount += 1
        # 设置助战属性
        npcControl = NPCCommon.NPCControl(helpBattleNPC)
@@ -295,8 +297,8 @@
    costMoneyList = []
    calledPlayerIDDict = {} # 已经召唤的玩家ID字典 {playerID:[是否付费召唤, 职业], ...}
    
    refreshCount = gameFB.GetPlayerGameFBDictByKey(playerID, ChConfig.FBPD_HelpBattleRefreshCount)
    if isClientRefresh:
        refreshCount = gameFB.GetPlayerGameFBDictByKey(playerID, ChConfig.FBPD_HelpBattleRefreshCount)
        freeRefreshCount = IpyGameDataPY.GetFuncCfg("HelpBattleRefresh", 1)
        goldRefreshCount = IpyGameDataPY.GetFuncCfg("HelpBattleRefresh", 2)
        if refreshCount >= (freeRefreshCount + goldRefreshCount):
@@ -323,7 +325,8 @@
            
    # 非客户端刷新的视为重新开始,重置刷新次数 
    else:
        gameFB.SetPlayerGameFBDict(playerID, ChConfig.FBPD_HelpBattleRefreshCount, 0)
        if not refreshCount:
            gameFB.SetPlayerGameFBDict(playerID, ChConfig.FBPD_HelpBattleRefreshCount, 0)
        gameFB.SetGameFBDict(ChConfig.FBPD_HelpBattleFBFightPower, ipyData.GetFightPowerMin())
        gameFB.SetGameFBDict(ChConfig.FBPD_HelpBattleFBBaseHurt, ipyData.GetRobotBaseHurt())
        GameWorld.DebugLog("设置副本战力=%s,保底伤害=%s" % (ipyData.GetFightPowerMin(), ipyData.GetRobotBaseHurt()))