From fd929faf55ab49f558ee2f7b5ef9adcba0de82c6 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 30 八月 2018 19:26:25 +0800
Subject: [PATCH] fix:3101 【后端】仙盟贡献物品效果

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py
index 5113087..d6f129b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py
@@ -244,9 +244,11 @@
     npcFamilyHisHurtDict = hurtMgr.familyHisHurtDict.get(key, {})
     npcFamilyPlayerIDDict = hurtMgr.familyPlayerIDDict.get(key, {})
     
+    ownerFamilyName = ""
     if ownerFamilyID in npcFamilyHisHurtDict:
         ownerFamilyHisHurt = npcFamilyHisHurtDict[ownerFamilyID]
-        PlayerControl.WorldNotify(0, "FairyGrabBossDead", [ownerFamilyHisHurt.name, bossID])
+        ownerFamilyName = ownerFamilyHisHurt.name
+        PlayerControl.WorldNotify(0, "FairyGrabBossDead", [ownerFamilyName, bossID])
         
     # 击杀结算前强制排序历史玩家伤血
     npcHisHurtPlayerList = npcPlayerHisHurtDict.values()
@@ -304,6 +306,10 @@
             if curPlayer:
                 NetPackCommon.SendFakePack(curPlayer, hurtPack)
                 
+    # 击杀时主动同步进度 
+    syncMsg = str({bossID:[0, maxHP, ownerFamilyID, ownerFamilyName]})
+    GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "FamilyOwnerBossInfo", syncMsg, len(syncMsg))
+                
     # 伤血在NPCCommon统一清
     return
 

--
Gitblit v1.8.0