|
@@ -2,6 +2,7 @@ using UI.DressUp;
|
|
|
using FairyGUI;
|
|
|
using UnityEngine;
|
|
|
using System.Collections.Generic;
|
|
|
+using System;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -333,6 +334,12 @@ namespace GFGGame
|
|
|
.SetRightButton(true, "好的");
|
|
|
return;
|
|
|
}
|
|
|
+ int _suitId = EquipDataCache.cacher.suitId;
|
|
|
+ if (_fightCfg.needItemId > 0 && (_suitId <= 0 && EquipDataCache.cacher.equipDatas.IndexOf(_fightCfg.needItemId) < 0 || _suitId > 0 && Array.IndexOf(SuitCfgArray.Instance.GetCfg(_suitId).partsArr, _fightCfg.needItemId) < 0) || _fightCfg.needSuitId > 0 && _suitId != _fightCfg.needSuitId)
|
|
|
+ {
|
|
|
+ Alert.Show("未穿戴必须品~").SetRightButton(true, "好的");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (CardDataManager.GetCardListByRarity(0).Count > 0)
|
|
|
{
|
|
|
|