From 925309e18b0e2a0b6226ce9fdfb2871137925f06 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 17 四月 2019 11:13:48 +0800
Subject: [PATCH] 3335 缥缈仙域

---
 System/HazyRegion/HazyDemonKingModel.cs |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/System/HazyRegion/HazyDemonKingModel.cs b/System/HazyRegion/HazyDemonKingModel.cs
index 943474d..6526af4 100644
--- a/System/HazyRegion/HazyDemonKingModel.cs
+++ b/System/HazyRegion/HazyDemonKingModel.cs
@@ -61,8 +61,18 @@
             {
                 var requireRefreshPlayer = false;
                 var actors = GAMgr.Instance.GetGroupList(E_ActorGroup.Player);
-                if ((actors != null && actors.Count != m_PlayerInfos.Count)
-                    || (actors == null && m_PlayerInfos.Count != 0))
+
+                var playerCount = 0;
+                foreach (var sid in m_PlayerInfos.Keys)
+                {
+                    if (sid != PlayerDatas.Instance.PlayerId)
+                    {
+                        playerCount++;
+                    }
+                }
+
+                if ((actors != null && actors.Count != playerCount)
+                    || (actors == null && playerCount != 0))
                 {
                     requireRefreshPlayer = true;
                 }

--
Gitblit v1.8.0