From 6eb8ce81a683bf5a3024877fdcd4d8c95a8c87b5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 29 六月 2023 17:15:43 +0800
Subject: [PATCH] 9818 【BT10】新增古宝特效效果

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossYaomoBoss.py |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossYaomoBoss.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossYaomoBoss.py
index af2f1e7..284ca17 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossYaomoBoss.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossYaomoBoss.py
@@ -204,7 +204,7 @@
     # 通知子服更新玩家总伤害
     if syncPlayerHurtInfo:
         serverGroupIDList = []
-        sendMsg = {"syncPlayerHurtInfo":syncPlayerHurtInfo}
+        sendMsg = {"syncPlayerHurtInfo":syncPlayerHurtInfo, "killBoss":1}
         CrossRealmMsg.SendMsgToClientServer(ShareDefine.CrossServerMsg_CrossYaomoBossHurtInfo, sendMsg, serverGroupIDList)
         
     return
@@ -228,6 +228,7 @@
     #zoneID = msgData["zoneID"]
     #npcID = msgData["npcID"]
     syncPlayerHurtInfo = msgData["syncPlayerHurtInfo"]
+    isKillBoss = msgData.get("killBoss") == 1
     
     for playerID, hurtInfo in syncPlayerHurtInfo.items():
         if not PlayerControl.GetDBPlayerAccIDByID(playerID):
@@ -242,12 +243,16 @@
             continue
         Sync_CrossYaomoBossPlayerHurtInfo(curPlayer)
         
-        if awardIndex == None:
-            continue
-        
-        # 通知地图发放奖励
-        msgInfo = ["HurtValueAward", [awardIndex, awardItemList]]
-        CrossRealmPlayer.MapServer_QueryCrossPlayerResult(playerID, "CrossYaomoBoss", msgInfo)
+        if awardIndex != None:
+            # 通知地图发放奖励
+            msgInfo = ["HurtValueAward", [awardIndex, awardItemList]]
+            CrossRealmPlayer.MapServer_QueryCrossPlayerResult(playerID, "CrossYaomoBoss", msgInfo)
+            
+        if isKillBoss:
+            # 通知地图击杀妖魔boss
+            msgInfo = ["KillYaomoBoss", hurtInfo]
+            CrossRealmPlayer.MapServer_QueryCrossPlayerResult(playerID, "CrossYaomoBoss", msgInfo)
+            
     return
 
 def OnPlayerLogin(curPlayer):

--
Gitblit v1.8.0