From f9ce45844bc568a72585a70ff971f2749e20438b Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期一, 13 八月 2018 10:59:32 +0800
Subject: [PATCH] 【1919】修改定制物品无穿戴限制的bug

---
 System/BlastFurnace/GetEquipPathTips.cs |   44 ++++++++++++++++++++++++--------------------
 1 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/System/BlastFurnace/GetEquipPathTips.cs b/System/BlastFurnace/GetEquipPathTips.cs
index 5c6f1c2..37e5c94 100644
--- a/System/BlastFurnace/GetEquipPathTips.cs
+++ b/System/BlastFurnace/GetEquipPathTips.cs
@@ -280,30 +280,34 @@
 
                         break;
                     case 1:
-                        realmTitleText.gameObject.SetActive(true);
-                        realmImg.gameObject.SetActive(true);
-                        realmTitleText.text = Language.Get("RealmLimit1");
-                        RealmConfig realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(itemAttrData.itemConfig.RealmLimit);
-                        if (itemAttrData.itemConfig.RealmLimit <= 0)
+                        if(itemAttrData.isHavePutLimit)
                         {
-                            realmImg.SetSprite("NoRealm");
-                        }
-                        else
-                        {
-                            if (realmConfig != null)
+                            realmTitleText.gameObject.SetActive(true);
+                            realmImg.gameObject.SetActive(true);
+                            realmTitleText.text = Language.Get("RealmLimit1");
+                            RealmConfig realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(itemAttrData.itemConfig.RealmLimit);
+                            if (itemAttrData.itemConfig.RealmLimit <= 0)
                             {
-                                realmImg.SetSprite(realmConfig.Img);
+                                realmImg.SetSprite("NoRealm");
+                            }
+                            else
+                            {
+                                if (realmConfig != null)
+                                {
+                                    realmImg.SetSprite(realmConfig.Img);
+                                }
+                            }
+
+                            if (PlayerDatas.Instance.baseData.realmLevel >= itemAttrData.itemConfig.RealmLimit)
+                            {
+                                realmTitleText.color = conditionColor;
+                            }
+                            else
+                            {
+                                realmTitleText.color = UIHelper.GetUIColor(TextColType.Red);
                             }
                         }
-
-                        if (PlayerDatas.Instance.baseData.realmLevel >= itemAttrData.itemConfig.RealmLimit)
-                        {
-                            realmTitleText.color = conditionColor;
-                        }
-                        else
-                        {
-                            realmTitleText.color = UIHelper.GetUIColor(TextColType.Red);
-                        }
+                      
                         break;
                     case 2:
                         RefreshNeedPointUI();

--
Gitblit v1.8.0