Explorar el Código

Update EX12_035.cs

x89rt2 hace 1 mes
padre
commit
12d9d5ce15
Se han modificado 1 ficheros con 7 adiciones y 12 borrados
  1. 7 12
      Assets/Scripts/CardEffect/EX12/Blue/EX12_035.cs

+ 7 - 12
Assets/Scripts/CardEffect/EX12/Blue/EX12_035.cs

@@ -125,6 +125,12 @@ namespace DCGO.CardEffects.EX12
                 return $"[{tag}] Trash any 4 digivolution cards from your opponent's Digimon. Then, return 1 of your opponent's Digimon with as many or fewer digivolution cards as this Digimon to the bottom of the deck.";
             }
 
+            bool CanSelectTrashPermanentCondition(Permanent permanent)
+            {
+                return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card)
+                    && !permanent.HasNoDigivolutionCards;
+            }
+
             bool CanSelectSpinPermanentCondition(Permanent permanent)
             {
                 return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card)
@@ -133,20 +139,9 @@ namespace DCGO.CardEffects.EX12
 
             IEnumerator SharedActivateCoroutine(Hashtable hashtable, ActivateClass activateClass)
             {
-                bool CanSelectTrashPermanentCondition(Permanent permanent)
-                {
-                    return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card)
-                        && permanent.DigivolutionCards.Some(CanSelectCardCondition);
-                }
-
-                bool CanSelectCardCondition(CardSource cardSource)
-                {
-                    return !cardSource.CanNotTrashFromDigivolutionCards(activateClass);
-                }
-
                 yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.SelectTrashDigivolutionCards(
                     permanentCondition: CanSelectTrashPermanentCondition,
-                    cardCondition: CanSelectCardCondition,
+                    cardCondition: _ => true,
                     maxCount: 4,
                     canNoTrash: false,
                     isFromOnly1Permanent: false,