From bbf29a0a3d0848ad95f1469b0da067712d14ff40 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 28 十二月 2018 14:27:00 +0800
Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(去除进入PK地图无敌buff、复活无敌buff)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py |    4 +++-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py                                 |    5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py
index 0c55f89..c9c6d2d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py
@@ -153,6 +153,8 @@
         curPlayer.Sync_TimeTick(ChConfig.tttTowerTake, 0, max(notify_tick, 0), True)
         
     FBCommon.Notify_FBHelp(curPlayer, __GetFBHelpInfo())
+    PlayerControl.DelLimitSuperBuff(curPlayer, tick)
+    PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
     return
 
 def __GetFBHelpInfo():
@@ -395,7 +397,7 @@
         
         if player.GetPlayerAction() == IPY_GameWorld.paDie or player.GetHP() <= 0:
             GameWorld.DebugLog("复活玩家...", player.GetPlayerID())
-            ChPlayer.PlayerRebornByType(player, ChConfig.rebornType_System, tick)
+            ChPlayer.PlayerRebornByType(player, ChConfig.rebornType_System, tick, isAddSuperBuff=False)
             __ResetPlayerState(gameFB, player, playerID)
         else:
             __ResetPlayerState(gameFB, player, playerID, False)
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 6ec55f3..befd498 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -3792,7 +3792,7 @@
 #@param mapBornPlace 复活位置,默认0为原地
 #@return 返回值无意义
 #@remarks 自定义函数, 玩家复活
-def PlayerRebornByType(curPlayer, playerRebornType, tick, mapBornPlace=0):
+def PlayerRebornByType(curPlayer, playerRebornType, tick, mapBornPlace=0, isAddSuperBuff=True):
     curPlayerID = curPlayer.GetID()
     curVipLv = curPlayer.GetVIPLv()
     
@@ -3901,7 +3901,8 @@
         FBLogic.OnResetFBRebornPlacePos(curPlayer, mapBornPlace, tick)
     
     #复活加无敌Buff
-    SkillCommon.AddBuffBySkillType_NoRefurbish(curPlayer , ChConfig.Def_SkillID_LimitSuperBuff, tick)
+    if isAddSuperBuff:
+        SkillCommon.AddBuffBySkillType_NoRefurbish(curPlayer , ChConfig.Def_SkillID_LimitSuperBuff, tick)
     #复活疲劳BUff
     if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_IsAddReviveTired):
         findBuff = SkillCommon.FindBuffByID(curPlayer, ChConfig.Def_SkillID_ReviveTired)[0]

--
Gitblit v1.8.0