| | |
| | | #@return 死亡冷却时间
|
| | | def GetRebronTime(curPlayer, playerRebornType):
|
| | | mapType = GameWorld.GetMap().GetMapFBType()
|
| | | |
| | | if playerRebornType in [ChConfig.rebornType_Health, ChConfig.rebornType_UseItem]:
|
| | | #原地复活、道具复活不用CD
|
| | | return 0
|
| | | |
| | | # 副本地图CD
|
| | | if mapType != IPY_GameWorld.fbtNull:
|
| | | fbRebornTimeDict = IpyGameDataPY.GetFuncEvalCfg('DuplicatesRebornTime', 1)
|
| | |
| | | if curMapID in fbRebornTimeDict:
|
| | | return fbRebornTimeDict[curMapID]
|
| | | return fbRebornTimeDict.get(0, 0)
|
| | | if playerRebornType in [ChConfig.rebornType_Health, ChConfig.rebornType_UseItem]:
|
| | | #原地复活、道具复活不用CD
|
| | | return 0
|
| | | |
| | | if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_IsAddReviveTired):
|
| | | findBuff = SkillCommon.FindBuffByID(curPlayer, ChConfig.Def_SkillID_ReviveTired)[0]
|
| | | if findBuff:
|