From 1c13ea056d81ec522ed227581edc1aa009bcf665 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 11 四月 2019 11:10:21 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/EquipStar/EquipStarModel.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/System/EquipStar/EquipStarModel.cs b/System/EquipStar/EquipStarModel.cs
index 67405a4..f978e21 100644
--- a/System/EquipStar/EquipStarModel.cs
+++ b/System/EquipStar/EquipStarModel.cs
@@ -122,6 +122,12 @@
                 return;
             }
 
+            if (config.CostItemDict.x > 0 && specialMaterial.value == 0)
+            {
+                SysNotifyMgr.Instance.ShowTip("StarLevelUp2", config.CostItemDict.x);
+                return;
+            }
+
             if (config.CostItemDict.x > 0 && packModel.GetItemCountByID(PackType.Item, config.CostItemDict.x) < config.CostItemDict.y)
             {
                 SysNotifyMgr.Instance.ShowTip("StarLevelUp2", config.CostItemDict.x);
@@ -140,7 +146,7 @@
                 }
             }
 
-            if (materialIndexs.Count < (config.CostEquipCnt + (config.CostItemDict.x > 0 ? 1 : 0)))
+            if (materialIndexs.Count < config.CostEquipCnt)
             {
                 SysNotifyMgr.Instance.ShowTip("StarLevelUp3");
                 return;

--
Gitblit v1.8.0