Explorar el Código

Merge pull request #878 from DCGO2/x89rt2-patch-1

Update AD1_015.cs
hooperk hace 5 meses
padre
commit
718d393e04
Se han modificado 1 ficheros con 5 adiciones y 12 borrados
  1. 5 12
      Assets/Scripts/CardEffect/AD1/Yellow/AD1_015.cs

+ 5 - 12
Assets/Scripts/CardEffect/AD1/Yellow/AD1_015.cs

@@ -190,13 +190,6 @@ namespace DCGO.CardEffects.AD1
                     {
                         List<CardSource> selectedCards = new List<CardSource>();
 
-                        IEnumerator SelectCardCoroutine(CardSource cardSource)
-                        {
-                            selectedCards.Add(cardSource);
-
-                            yield return null;
-                        }
-
                         if (fromHand)
                         {
                             SelectHandEffect selectHandEffect = GManager.instance.GetComponent<SelectHandEffect>();
@@ -303,7 +296,7 @@ namespace DCGO.CardEffects.AD1
 
                         if (selectedPermanent != null)
                         {
-                            List<CardSource> selectedCards = new List<CardSource>();
+                            List<CardSource> selectedCards1 = new List<CardSource>();
 
                             SelectHandEffect selectHandEffect = GManager.instance.GetComponent<SelectHandEffect>();
 
@@ -316,14 +309,14 @@ namespace DCGO.CardEffects.AD1
                                 canNoSelect: true,
                                 canEndNotMax: false,
                                 isShowOpponent: true,
-                                selectCardCoroutine: null,
+                                selectCardCoroutine: SelectCardCoroutine,
                                 afterSelectCardCoroutine: null,
                                 mode: SelectHandEffect.Mode.Custom,
                                 cardEffect: activateClass);
 
                             IEnumerator SelectCardCoroutine(CardSource cardSource)
                             {
-                                selectedCards.Add(cardSource);
+                                selectedCards1.Add(cardSource);
 
                                 yield return null;
                             }
@@ -332,9 +325,9 @@ namespace DCGO.CardEffects.AD1
 
                             yield return StartCoroutine(selectHandEffect.Activate());
 
-                            if (selectedCards.Count > 0)
+                            if (selectedCards1.Count > 0)
                             {
-                                yield return ContinuousController.instance.StartCoroutine(selectedPermanent.AddDigivolutionCardsBottom(selectedCards, activateClass));
+                                yield return ContinuousController.instance.StartCoroutine(selectedPermanent.AddDigivolutionCardsBottom(selectedCards1, activateClass));
 
                                 yield return ContinuousController.instance.StartCoroutine(new DrawClass(card.Owner, 2, activateClass).Draw());
                             }