|  |  | 
 |  |  |     lineID = 0
 | 
 |  |  |     mapID = FBCommon.GetRecordMapID(GameWorld.GetMap().GetMapID())
 | 
 |  |  |     ipyData = IpyGameDataPY.GetIpyGameDataByCondition('FairyDomain', {'MapID':mapID, 'LineID':lineID})
 | 
 |  |  |     fdeventID = ipyData.GetID()
 | 
 |  |  |     fdeventID = ipyData.GetID() if ipyData else 0
 | 
 |  |  |     GameWorld.DebugLog("副本结算: isPass=%s" % (isPass))
 | 
 |  |  |     
 | 
 |  |  |     noAssistPlayerID, assistMoneyType, assistPlayerMoneyDict = PlayerAssist.OnFBAssistOver(isPass, mapID)
 | 
 |  |  | 
 |  |  | def CheckCanAttackTagObjInFB(attacker, defender):
 | 
 |  |  |     return GameWorld.GetGameFB().GetFBStep() == FB_Step_Fight
 | 
 |  |  | 
 | 
 |  |  | ## 可否扫荡
 | 
 |  |  | def OnPlayerFBSweepAsk(curPlayer, mapID, lineID, sweepCnt, isFinish, dataEx):
 | 
 |  |  |     curState = PlayerFairyDomain.GetFairyDomainFBEventState(curPlayer, mapID, lineID)
 | 
 |  |  |     if curState not in [PlayerFairyDomain.FDEventState_CanVisit, PlayerFairyDomain.FDEventState_Visiting]:
 | 
 |  |  |         GameWorld.DebugLog("缥缈无法扫荡! 不存在该事件或无法进入! mapID=%s,lineID=%s,curState=%s" % (mapID, lineID, curState))
 | 
 |  |  |         return False
 | 
 |  |  |     return True
 | 
 |  |  | 
 | 
 |  |  | 
 | 
 |  |  | ## 扫荡结果
 | 
 |  |  | def OnPlayerFBSweepResult(curPlayer, mapID, lineID, sweepCnt, isFinish, dataEx):
 | 
 |  |  |     ipyData = IpyGameDataPY.GetIpyGameDataByCondition('FairyDomain', {'MapID':mapID, 'LineID':lineID})
 | 
 |  |  |     if ipyData:
 | 
 |  |  |         fdeventID = ipyData.GetID()
 | 
 |  |  |         PlayerFairyDomain.SetFairyDomainEventState(curPlayer, fdeventID, PlayerFairyDomain.FDEventState_Visited)
 | 
 |  |  |      | 
 |  |  |     isPass = 1
 | 
 |  |  |     _, bossID = FBCommon.GetFBLineRefreshNPC(ChConfig.Def_FBMapID_KillDevil)
 | 
 |  |  |     jsonItemList, totalExp, totalMoney = NPCCommon.GiveKillNPCDropPrize(curPlayer, mapID, {bossID:1})
 | 
 |  |  |     overDict = {FBCommon.Over_itemInfo:jsonItemList, FBCommon.Over_isSweep:1}
 | 
 |  |  |     FBCommon.NotifyFBOver(curPlayer, mapID, lineID, isPass, overDict)
 | 
 |  |  |     return
 |