From 3118adeb72c93f559944ee7425409e0a125b23dd Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 10 一月 2019 11:59:01 +0800
Subject: [PATCH] 860312 修复在线数据同一分钟发送两次问题;客户端和服务端tick不对应再次同步一次
---
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..229ccf4 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,9 +143,13 @@
#玩家击杀NPC副本触发器
curPlayer = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, curSummonNPC)
+ if not ChNPC.OnCheckCanDie(curPlayer, curTagNPC, skill, tick):
+ return
+
#2011-05-12 chenxuewei 有没主人都只要通知一次即可,避免重复通知
if curPlayer != None:
FBLogic.DoFB_Player_KillNPC(curPlayer, curTagNPC, tick)
+ NPCCommon.OnPlayerAttackNPCDie(curTagNPC, curPlayer, skill)
else:
#副本
FBLogic.DoFB_Npc_KillNPC(curSummonNPC, curTagNPC, tick)
--
Gitblit v1.8.0