From caef63ce5d50ef1456a2dd82926833027a40dc1c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 十二月 2019 20:56:48 +0800
Subject: [PATCH] 8346 【恺英】【后端】协助系统(修复同地图有伤害队员不在boss区域无法获得归属bug;修复第一名伤血无归属玩家时,会默认给其他玩家归属bug)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 89936b0..70c5423 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -5314,7 +5314,6 @@
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
@@ -5355,8 +5354,11 @@
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
--
Gitblit v1.8.0