From 78bfe524ea4776c47f6314e56e97f39970b00fce Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 25 九月 2018 15:07:07 +0800
Subject: [PATCH] Merge branch 'master' into 1871天赋功能

---
 System/PlayerDead/PlayerDeadModel.cs |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/System/PlayerDead/PlayerDeadModel.cs b/System/PlayerDead/PlayerDeadModel.cs
index 532cffb..5a12a6a 100644
--- a/System/PlayerDead/PlayerDeadModel.cs
+++ b/System/PlayerDead/PlayerDeadModel.cs
@@ -26,7 +26,7 @@
         IsCanReborn = false;
         isOpenPrompting = true;
         this.deadCD = 0;
-        localBossState = 0;
+        localBossState = false;
         playerIsDie = false;
     }
 
@@ -81,13 +81,14 @@
     private DungeonOpenTimeConfig _dungeonOpenTimeModel;
 
     public bool IsCanReborn { get; private set; }
-    public int localBossState { get; private set;}
+    public bool localBossState { get; private set;}
     public string killerName { get; private set; }
     public bool isKillByPlayer { get; private set; }
     public int npcRealmLv { get; private set; }
     private void RefreshPlayerDieInfo(string key, ArrayList infolist)
     {
         npcRealmLv = 0;
+        localBossState = false;
         switch (key)
         {
             case "PK_lhs_318691":
@@ -100,11 +101,16 @@
             case "GeRen_chenxin_279029":
                 if(infolist.Count > 0)
                 {
+                    WorldBossConfig bossConfig = Config.Instance.Get<WorldBossConfig>(int.Parse(infolist[0].ToString()));
                     NPCConfig nPCConfig = Config.Instance.Get<NPCConfig>(int.Parse(infolist[0].ToString()));
                     if(nPCConfig != null)
                     {
                         killerName = nPCConfig.charName;
                         npcRealmLv = nPCConfig.Realm;
+                    }
+                    if(bossConfig != null)
+                    {
+                        localBossState = true;
                     }
                     isKillByPlayer = false;
                 }
@@ -141,8 +147,6 @@
         {
             return;
         }
-
-        localBossState = PlayerDatas.Instance.extersion.bossState;
         playerIsDie = true;
         _tagMapModel = Config.Instance.Get<MapConfig>(PlayerDatas.Instance.baseData.MapID);
         if (_tagMapModel.MapFBType == 0)
@@ -151,7 +155,7 @@
             rebornTiredNum = RebornConditions[0];
             rebornPrice = RebornConditions[2];
             //isBossKill = StatusManager.Instance.IsExist((int)playerId,20022);
-            if (!isKillByPlayer && localBossState == 1)
+            if (!isKillByPlayer && localBossState)
             {
                 autoRebornTime = RebornConditions[3];
             }
@@ -253,7 +257,7 @@
         if (PlayerDatas.Instance.baseData.PlayerID != data.PlayerID)
             return;
 
-        localBossState = 0;
+        localBossState = false;
         this.deadCD = 0;
         isKillByPlayer = false;
         playerIsDie = false;

--
Gitblit v1.8.0