x89rt2 1 месяц назад
Родитель
Сommit
fdab4448d6
1 измененных файлов с 10 добавлено и 2 удалено
  1. 10 2
      Assets/Scripts/CardEffect/BT18/Red/BT18_019.cs

+ 10 - 2
Assets/Scripts/CardEffect/BT18/Red/BT18_019.cs

@@ -152,7 +152,7 @@ namespace DCGO.CardEffects.BT18
                                 canEndSelectCondition: null,
                                 canNoSelect: () => canSelectNo,
                                 selectCardCoroutine: LevelSelected,
-                                afterSelectCardCoroutine: null,
+                                afterSelectCardCoroutine: AfterSelectCardCoroutine,
                                 message: $"Select level {Levels.IndexOf(level) + 3} Digimon card to add to the top of opponent's deck",
                                 maxCount: 1,
                                 canEndNotMax: false,
@@ -171,8 +171,16 @@ namespace DCGO.CardEffects.BT18
                         {
                             if (cardSource != null)
                                 selectedCards.Add(cardSource);
-                            else
+
+                            yield return null;
+                        }
+
+                        IEnumerator AfterSelectCardCoroutine(List<CardSource> cardSources)
+                        {
+                            if (cardSources.Count == 0)
+                            {
                                 exitLoop = true;
+                            }
 
                             yield return null;
                         }