| | |
| | | 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():
|
| | | ## 战斗阵营
|
| | |
|
| | |
| | | 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)
|
| | |
| | | if not lineupMainInfo:
|
| | | GameWorld.DebugLogEx("没有设置主阵容!", playerID)
|
| | | return
|
| | |
|
| | |
|
| | | strongerLV = levelIpyData.GetNPCLV()
|
| | | difficulty = levelIpyData.GetDifficulty()
|