| | |
| | | if curPlayer.GetOfficialRank() < ipyData.GetRealmLV():
|
| | | return
|
| | | #诛仙总评分
|
| | | |
| | | if ItemCommon.GetZhuXianEquipTotalGS(curPlayer) < ipyData.GetZhuXianScore():
|
| | | return
|
| | |
|
| | | enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % ChConfig.Def_FBMapID_ZhuXianBoss)
|
| | | if enterCnt >= FBCommon.GetEnterFBMaxCnt:
|
| | | if enterCnt >= FBCommon.GetEnterFBMaxCnt(curPlayer, ChConfig.Def_FBMapID_ZhuXianBoss):
|
| | | if not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ZhuXianBossHelpCnt):
|
| | | return
|
| | | if not curPlayer.GetFamilyID():
|
| | |
| | | #
|
| | | def UpdateHurtInfo(curPlayer, hurtHP, isAdd=False):
|
| | | enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % ChConfig.Def_FBMapID_ZhuXianBoss)
|
| | | if enterCnt >= FBCommon.GetEnterFBMaxCnt:
|
| | | if enterCnt >= FBCommon.GetEnterFBMaxCnt(curPlayer, ChConfig.Def_FBMapID_ZhuXianBoss):
|
| | | #没归属的不进伤害榜
|
| | | return
|
| | | lineID = GameWorld.GetGameWorld().GetPropertyID() - 1
|
| | |
| | | def DoPlayerDead(curPlayer):
|
| | | return
|
| | |
|
| | |
|
| | | ## 检查是否可攻击, 主判定不可攻击的情况,其他逻辑由外层决定
|
| | | # @param attacker 攻击方
|
| | | # @param defender 防守方
|
| | | # @return bool
|
| | | def CheckCanAttackTagObjInFB(attacker, defender):
|
| | | atkObjType = attacker.GetGameObjType()
|
| | | defObjType = defender.GetGameObjType()
|
| | | if atkObjType == IPY_GameWorld.gotPlayer and defObjType == IPY_GameWorld.gotNPC:
|
| | | gameWorld = GameWorld.GetGameWorld()
|
| | | lineID = gameWorld.GetPropertyID() - 1
|
| | | if not gameWorld.GetGameWorldDictByKey(FBDict_IsReduceing%lineID):
|
| | | PlayerControl.NotifyCode(attacker, 'TryEnterJadeDynastyBossError_7')
|
| | | return False
|
| | | return True
|