| | |
| | |
|
| | | if curTeamPlayer.GetCopyMapID() == GameWorld.GetGameWorld().GetCopyMapID() \
|
| | | and (not hurtList or hurtList.HaveHurtValue(curTeamPlayer.GetPlayerID()))\
|
| | | and self.GetIsInRefreshPoint(curTeamPlayer.GetPosX(), curTeamPlayer.GetPosY(), refreshPoint) \
|
| | | and AttackCommon.CheckKillNPCByCnt(curTeamPlayer, curNPC, False) and curTeamPlayer.GetVisible():
|
| | | self.__AddDropOwnerPlayerBuff(curTeamPlayer, tick)
|
| | | killerDict[curTeamPlayer.GetPlayerID()] = curTeamPlayer
|
| | |
| | | if isDead:
|
| | | #key = (GameWorld.GetGameWorld().GetLineID(), curNPC.GetID(), npcID)
|
| | | teamID = curTeam.GetTeamID() if curTeam else 0
|
| | | if killerDict:
|
| | | PyGameData.g_npcKillerInfo[key] = killerDict, curTeam, hurtType, hurtID
|
| | | # 伤血归属的强制记录,即使空的也记录,因为有助战,伤血第一团队伤害可能还在但是归属玩家可能离线
|
| | | if dropOwnerType == ChConfig.DropOwnerType_MaxHurt:
|
| | | PyGameData.g_npcKillerInfo[key] = killerDict, None, hurtType, hurtID
|
| | | if not killerDict:
|
| | | GameWorld.Log("伤血归属boss没有归属玩家!")
|
| | | elif ownerType == ChConfig.Def_NPCHurtTypeFamily:
|
| | | PyGameData.g_npcKillerInfo[key] = {}, None, hurtType, hurtID
|
| | |
|