| | |
| | | playerID = 0
|
| | | if curPlayer:
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | if curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_MirrorBattleID):
|
| | | GameWorld.DebugLog("镜像战斗场景中,无法请求!", playerID)
|
| | | return
|
| | | curTime = int(time.time())
|
| | | # 请求cd验证
|
| | | requestTime = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_MirrorBattleTime)
|
| | |
| | | "requestTime":requestTime, "requestID":requestID, "requestMapID":requestMapID, "playerID":playerID})
|
| | | GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "ReuestPlayerPackData", sendMsg, len(sendMsg))
|
| | | GameWorld.DebugLog("请求创建镜像战斗: %s" % sendMsg, playerID)
|
| | | return
|
| | | return True
|
| | |
|
| | | def OnMirrorBattleInit(msgInfo, packDataDict, curPlayer=None):
|
| | | ''' 镜像战斗初始化
|