hch
2 天以前 35d98e9c630fd4408561c8c54b4c09193bb9ce9e
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -169,6 +169,17 @@
            deadCnt += 1
        return deadCnt
    
    def GetBeFrozenCnt(self):
        ## 获取本阵容累计被冰冻次数
        totalCnt = 0
        batObjMgr = BattleObj.GetBatObjMgr()
        for objID in self._batHeroObjIDList:
            batObj = batObjMgr.getBatObj(objID)
            if not batObj:
                continue
            totalCnt += batObj.GetBeFrozenCnt()
        return totalCnt
class BatFaction():
    ## 战斗阵营
    
@@ -1472,6 +1483,12 @@
    curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
    reqType = clientData.ReqType
    reqValue = clientData.ReqValue
    # 开始时补通知一次当前关卡进度, 原因:前端播放战报关卡进度吞包刷新问题
    curPlayer.SetExAttr1(PlayerControl.GetMainLevelPassValue(curPlayer), False, False) # 不通知GameServer
    PlayerControl.SetMainLevelNowValue(curPlayer, PlayerControl.GetMainLevelNowValue(curPlayer))
    
    if reqType == 0:
        __doExitMainFight(curPlayer)
@@ -1594,6 +1611,7 @@
    if not lineupMainInfo:
        GameWorld.DebugLogEx("没有设置主阵容!", playerID)
        return
    
    strongerLV = levelIpyData.GetNPCLV()
    difficulty = levelIpyData.GetDifficulty()
@@ -1984,7 +2002,7 @@
        if skillData.GetSkillType() in ChConfig.Def_LstBuff_List:
            #GameWorld.DebugLogEx("    持续类buff由触发时机决定剩余时间! curID=%s,index=%s,skillID=%s,buffID=%s", curID, index, skillID, buffID)
            continue
        if skillData.GetSkillType() == ChConfig.Def_SkillType_Halo and buff.GetOwnerID() != curID:
        if skillData.GetSkillType() in ChConfig.Def_HaloSkill_List and buff.GetOwnerID() != curID:
            GameWorld.DebugLogEx("    光环buff非光源不处理! curID=%s,index=%s,skillID=%s,buffID=%s", curID, index, skillID, buffID)
            continue
        
@@ -2032,7 +2050,7 @@
        if skillData.GetSkillType() in ChConfig.Def_LstBuff_List:
            #GameWorld.DebugLogEx("    持续类buff由触发时机决定剩余时间! curID=%s,index=%s,skillID=%s,buffID=%s", curID, index, skillID, buffID)
            continue
        if skillData.GetSkillType() == ChConfig.Def_SkillType_Halo and buff.GetOwnerID() != curID:
        if skillData.GetSkillType() in ChConfig.Def_HaloSkill_List and buff.GetOwnerID() != curID:
            GameWorld.DebugLogEx("    光环buff非光源不处理! curID=%s,index=%s,skillID=%s,buffID=%s", curID, index, skillID, buffID)
            continue
        remainTime = buff.GetRemainTime()