| | |
| | | GameWorld.DebugLog("非同盟玩家不能协助!")
|
| | | return
|
| | |
|
| | | playerMapID = curPlayer.GetMapID()
|
| | | mapID = assistObj.MapID
|
| | | lineID = assistObj.LineID
|
| | | gameMap = GameWorld.GetMap(mapID)
|
| | | if not gameMap:
|
| | | playerMap = GameWorld.GetMap(playerMapID)
|
| | | if not playerMap:
|
| | | return
|
| | | if gameMap.GetMapFBType() != ChConfig.fbtNull:
|
| | | playerMapID = curPlayer.GetMapID()
|
| | | playerLineID = PlayerControl.GetFBFuncLineID(curPlayer)
|
| | | if playerMap.GetMapFBType() != ChConfig.fbtNull:
|
| | | playerLineID = curPlayer.GetFBID()
|
| | | if playerMapID != mapID or playerLineID != lineID:
|
| | | #副本中无法协助
|
| | | PlayerControl.NotifyCode(curPlayer, "AssistFBLimit")
|
| | | return
|
| | |
|
| | | # 设定协助必须离开队伍
|
| | | if gameMap.GetMapFBType() != ChConfig.fbtTeam:
|
| | | tagMap = GameWorld.GetMap(mapID)
|
| | | if not tagMap:
|
| | | return
|
| | | if tagMap.GetMapFBType() != ChConfig.fbtTeam:
|
| | | curTeam = curPlayer.GetTeam()
|
| | | if curTeam:
|
| | | PlayerTeam.DoPlayerLeaveTeam(curPlayer, curTeam, tick)
|