mbunch_kascope 1 год назад
Родитель
Сommit
ae8a1f74ac
2 измененных файлов с 6 добавлено и 7 удалено
  1. 5 6
      Assets/CardEffect/P/Purple/P_096.cs
  2. 1 1
      ProjectSettings/ProjectSettings.asset

+ 5 - 6
Assets/CardEffect/P/Purple/P_096.cs

@@ -288,6 +288,8 @@ namespace DCGO.CardEffects.P
                                     {
                                         Permanent selectedPermanent = null;
 
+                                        int _maxCount = 1;
+
                                         SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
 
                                         selectPermanentEffect.SetUp(
@@ -318,7 +320,7 @@ namespace DCGO.CardEffects.P
                                         {
                                             if (selectedPermanent.DigivolutionCards.Count(CanSelectDigivolutionCardsCondition) >= 1)
                                             {
-                                                int _maxCount = Math.Min(
+                                                _maxCount = Math.Min(
                                                     maxSelectCardCount(),
                                                     selectedPermanent.DigivolutionCards.Count(CanSelectDigivolutionCardsCondition));
 
@@ -334,7 +336,7 @@ namespace DCGO.CardEffects.P
                                                             selectCardCoroutine: SelectCardCoroutine,
                                                             afterSelectCardCoroutine: null,
                                                             message: "Select digivolution cards.",
-                                                            maxCount: _maxCount,
+                                                            maxCount: 1,
                                                             canEndNotMax: true,
                                                             isShowOpponent: true,
                                                             mode: SelectCardEffect.Mode.Custom,
@@ -359,9 +361,6 @@ namespace DCGO.CardEffects.P
                                     }
                                 }
                             }
-
-                            if (maxSelectCardCount() <= 0)
-                                break;
                         }
 
                         if (digivolutionCards.Count >= 1)
@@ -491,4 +490,4 @@ namespace DCGO.CardEffects.P
             return cardEffects;
         }
     }
-}
+}

+ 1 - 1
ProjectSettings/ProjectSettings.asset

@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:b297c5201e5134b4c11e3273d88f95ae8f8f74027d8ac1a0649765d85b359e5f
+oid sha256:23671be3fd0494e2ea8c9d20a08188b826298081740d4cf8fde6cced7b142561
 size 20168