少年修仙传客户端代码仓库
client_Zxw
2019-01-04 e59cd0b6b7f2a9e9a08d3ea88e89b8d023a86eb1
2821 【BUG】【1.4.100】跨服pk,没有屏蔽仙盟红包
1个文件已修改
25 ■■■■ 已修改文件
System/MainInterfacePanel/MainInterfaceWin.cs 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/MainInterfaceWin.cs
@@ -456,7 +456,9 @@
            {
                m_RedpackGetSfx.StopImediatly();
            }
            if (OSEnvelopeModel.CanGetEnvelope())
            var requireRedpack = (OSEnvelopeModel.CanGetEnvelope()
                || redPacket.IsRedBagGetBool) && PlayerDatas.Instance.baseData.ExAttr5 != 1;
            if (requireRedpack)
            {
                m_RedBag.gameObject.SetActive(true);
                if (!m_RedpackGetSfx.IsPlaying)
@@ -466,18 +468,7 @@
            }
            else
            {
                if (redPacket.IsRedBagGetBool)
                {
                    m_RedBag.gameObject.SetActive(true);
                    if (!m_RedpackGetSfx.IsPlaying)
                    {
                        m_RedpackGetSfx.Play();
                    }
                }
                else
                {
                    m_RedBag.gameObject.SetActive(false);
                }
                m_RedBag.gameObject.SetActive(false);
            }
            CheckSendRedpackBtn();
        }
@@ -1014,6 +1005,10 @@
            {
                StartCoroutine(featureNoticeModel.WhetherToPlayTheBox());//功能预告
            }
            if (_tCDBPlayerRefresh == PlayerDataRefresh.ExAttr5)//判断是否再跨服
            {
                IsCrossServerOneVsOne();
            }
        }
        void OnArriveCollectNPC(uint sid, int npcID)
@@ -1315,6 +1310,10 @@
                m_FunctionForecastTip.gameObject.SetActive(true);
                m_TaskSwithButton.gameObject.SetActive(true);
                m_InGamePusher.gameObject.SetActive(true);
                if (WindowCenter.Instance.IsOpen<FightingPKWin>())
                {
                    WindowCenter.Instance.CloseImmediately<FightingPKWin>();
                }
                OnRedBagGet();
            }