Pārlūkot izejas kodu

Fix EX3-058 cannot select DNA Target

hooperk 3 mēneši atpakaļ
vecāks
revīzija
15056501e7

+ 25 - 25
Assets/Scripts/CardEffect/EX3/Purple/EX3_058.cs

@@ -69,30 +69,30 @@ namespace DCGO.CardEffects.EX3
                     return false;
                     return false;
                 }
                 }
 
 
-                //bool CanSelectCardCondition1(CardSource cardSource)
-                //{
-                //    if (cardSource != null)
-                //    {
-                //        if (cardSource.IsDigimon)
-                //        {
-                //            if (cardSource.Owner == card.Owner)
-                //            {
-                //                if (cardSource.CanPlayJogress(true))
-                //                {
-                //                    if (isExistOnField(card))
-                //                    {
-                //                        if (cardSource.CanJogressFromTargetPermanent(card.PermanentOfThisCard(), true))
-                //                        {
-                //                            return true;
-                //                        }
-                //                    }
-                //                }
-                //            }
-                //        }
-                //    }
-
-                //    return false;
-                //}
+                bool CanSelectCardCondition1(CardSource cardSource)
+                {
+                   if (cardSource != null)
+                   {
+                       if (cardSource.IsDigimon)
+                       {
+                           if (cardSource.Owner == card.Owner)
+                           {
+                               if (cardSource.CanPlayJogress(true))
+                               {
+                                   if (isExistOnField(card))
+                                   {
+                                       if (cardSource.CanJogressFromTargetPermanent(card.PermanentOfThisCard(), true))
+                                       {
+                                           return true;
+                                       }
+                                   }
+                               }
+                           }
+                       }
+                   }
+
+                   return false;
+                }
 
 
                 bool CanUseCondition(Hashtable hashtable)
                 bool CanUseCondition(Hashtable hashtable)
                 {
                 {
@@ -182,7 +182,7 @@ namespace DCGO.CardEffects.EX3
                         {
                         {
                             yield return ContinuousController.instance.StartCoroutine(
                             yield return ContinuousController.instance.StartCoroutine(
                                          CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
                                          CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
-                                             CanSelectCardCondition,
+                                             CanSelectCardCondition1,
                                              payCost: true,
                                              payCost: true,
                                              isHand: true,
                                              isHand: true,
                                              activateClass,
                                              activateClass,

+ 25 - 25
Assets/Scripts/CardEffect/EX3/Red/EX3_008.cs

@@ -69,30 +69,30 @@ namespace DCGO.CardEffects.EX3
                     return false;
                     return false;
                 }
                 }
 
 
-                //bool CanSelectCardCondition1(CardSource cardSource)
-                //{
-                //    if (cardSource != null)
-                //    {
-                //        if (cardSource.IsDigimon)
-                //        {
-                //            if (cardSource.Owner == card.Owner)
-                //            {
-                //                if (cardSource.CanPlayJogress(true))
-                //                {
-                //                    if (isExistOnField(card))
-                //                    {
-                //                        if (cardSource.CanJogressFromTargetPermanent(card.PermanentOfThisCard(), true))
-                //                        {
-                //                            return true;
-                //                        }
-                //                    }
-                //                }
-                //            }
-                //        }
-                //    }
-
-                //    return false;
-                //}
+                bool CanSelectCardCondition1(CardSource cardSource)
+                {
+                   if (cardSource != null)
+                   {
+                       if (cardSource.IsDigimon)
+                       {
+                           if (cardSource.Owner == card.Owner)
+                           {
+                               if (cardSource.CanPlayJogress(true))
+                               {
+                                   if (isExistOnField(card))
+                                   {
+                                       if (cardSource.CanJogressFromTargetPermanent(card.PermanentOfThisCard(), true))
+                                       {
+                                           return true;
+                                       }
+                                   }
+                               }
+                           }
+                       }
+                   }
+
+                   return false;
+                }
 
 
                 bool CanUseCondition(Hashtable hashtable)
                 bool CanUseCondition(Hashtable hashtable)
                 {
                 {
@@ -182,7 +182,7 @@ namespace DCGO.CardEffects.EX3
                         {
                         {
                             yield return ContinuousController.instance.StartCoroutine(
                             yield return ContinuousController.instance.StartCoroutine(
                                          CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
                                          CardEffectCommons.DNADigivolvePermanentsIntoHandOrTrashCard(
-                                             CanSelectCardCondition,
+                                             CanSelectCardCondition1,
                                              payCost: true,
                                              payCost: true,
                                              isHand: true,
                                              isHand: true,
                                              activateClass,
                                              activateClass,