From d977f8886d55020e105864830b3c6ca93665ddc9 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 08 十二月 2018 17:02:41 +0800
Subject: [PATCH] 5338 【后端】【1.3.100】打BOSS和PK状态传送优化处理

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index 29cfc9f..cd781a7 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -3923,8 +3923,13 @@
         SkillCommon.AddBuffBySkillType_NoRefurbish(curPlayer , ChConfig.Def_SkillID_ReviveTired, tick, buffSkillLV)
         GameWorld.DebugLog('    复活疲劳BUff buffSkillLV=%s'%(buffSkillLV))
         PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_IsAddReviveTired,0)
+    #复活后清除角色身上的打BOSS和PK状态
+    validTime = IpyGameDataPY.GetFuncCfg("PKConfig", 4) * 1000
+    if PlayerState.IsInPKState(curPlayer):
+        PlayerState.SetPKStateTick(curPlayer, tick - validTime)
+    if PlayerState.IsInBossState(curPlayer):
+        PlayerState.SetBossStateTick(curPlayer, tick- validTime)
     
-
     #重算属性
     playerControl = PlayerControl.PlayerControl(curPlayer)
     playerControl.RefreshAllState()

--
Gitblit v1.8.0