From e95c880a51289fb5f4f54b1a24ff6d590dceef0d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 01 二月 2021 16:56:00 +0800
Subject: [PATCH] 8718 【主干】【BT2】充值前向服务器咨询是否可充值封包

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/SummonNPC_Attack_NormalNPC.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/SummonNPC_Attack_NormalNPC.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/SummonNPC_Attack_NormalNPC.py
index 14dea9b..403c638 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/SummonNPC_Attack_NormalNPC.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/SummonNPC_Attack_NormalNPC.py
@@ -143,8 +143,12 @@
     #玩家击杀NPC副本触发器
     curPlayer = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curSummonNPC)
     
+    if not ChNPC.OnCheckCanDie(curPlayer, curTagNPC, skill, tick):
+        return
+    
     #2011-05-12 chenxuewei 有没主人都只要通知一次即可,避免重复通知
     if curPlayer != None:
+        NPCCommon.OnPlayerAttackNPCDie(curTagNPC, curPlayer, skill)
         FBLogic.DoFB_Player_KillNPC(curPlayer, curTagNPC, tick)
     else:
         #副本

--
Gitblit v1.8.0