xdh
2019-05-27 65a4c2029af3f70ce484a2eec167c50f227d7a5c
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py
@@ -496,12 +496,7 @@
            PlayerControl.SetCustomMap(curPlayer, 0, 0)
            return
    
    curPlayer.SetCanAttack(False)
    curPlayer.SetVisible(False)
    curPlayer.SetSightLevel(curPlayer.GetID())
    curPet = curPlayer.GetPetMgr().GetFightPet()
    if curPet:
        curPet.SetVisible(False)
    PlayerControl.SetPlayerSightLevel(curPlayer, curPlayer.GetID())
        
    curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomScene, 1) # 由于前端不一定有发mapID,所以这里额外记录这个状态,不能直接用mapID判断
    PlayerControl.SetCustomMap(curPlayer, mapID, lineID)
@@ -516,15 +511,7 @@
def DoExitCustomScene(curPlayer):
    ## 退出自定义场景状态
    curPlayer.SetCanAttack(True)
    curPlayer.SetVisible(True)
    curPlayer.SetSightLevel(curPlayer.GetID())
    curPlayer.RefreshView()
    curPlayer.SetSightLevel(0)
    curPlayer.RefreshView()
    curPet = curPlayer.GetPetMgr().GetFightPet()
    if curPet:
        curPet.SetVisible(True)
    PlayerControl.SetPlayerSightLevel(curPlayer, 0)
    mapID = PlayerControl.GetCustomMapID(curPlayer)
    lineID = PlayerControl.GetCustomLineID(curPlayer)
    curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomScene, 0)