瀏覽代碼

Update BT20_020

Pedro Paulo de Almeida Marinho 1 年之前
父節點
當前提交
4de561b224
共有 3 個文件被更改,包括 60 次插入276 次删除
  1. 60 63
      Assets/CardEffect/BT20/Red/BT20_020.cs
  2. 0 202
      Assets/CardEffect/BT20/Red/BT20_076.cs
  3. 0 11
      Assets/CardEffect/BT20/Red/BT20_076.meta

+ 60 - 63
Assets/CardEffect/BT20/Red/BT20_020.cs

@@ -43,85 +43,82 @@ namespace DCGO.CardEffects.BT20
 
             #region When Digievolving
             if (timing == EffectTiming.OnEnterFieldAnyone)
-            {
-                
-                IEnumerator ActivateCoroutine1(Hashtable hashtable)
-                {
-                    yield return null;
-                    CanNotPutFieldClass canNotPutFieldClass = new CanNotPutFieldClass();
-                    canNotPutFieldClass.SetUpICardEffect("Can't play Digimon or Tamers by effect", CanUseCondition1, card);
-                    canNotPutFieldClass.SetUpCanNotPutFieldClass(cardCondition: CardCondition, cardEffectCondition: CardEffectCondition1);
-                    card.Owner.Enemy.UntilOwnerTurnEndEffects.Add((_timing) => canNotPutFieldClass);
-                    ContinuousController.instance.PlaySE(GManager.instance.GetComponent<Effects>().DebuffSE);
-
-                    bool CanUseCondition1(Hashtable hashtable)
+            {              
+              
+                    ActivateClass activateClass = new ActivateClass();
+                    activateClass.SetUpICardEffect("Gains raid, piercing, trash security stack", CanUseCondition, card);
+                    activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDiscription());
+                    cardEffects.Add(activateClass);
+                    
+
+                    bool CardEffectCondition(ICardEffect cardEffect)
                     {
-                        return true;
+                        return cardEffect != null;
                     }
-
-                    bool CardCondition(CardSource cardSource)
+                    
+                    string EffectDiscription()
                     {
-                    if (cardSource.Owner == card.Owner.Enemy)
+                        return "[When Digivolving] Your opponent can't play Digimon or Tamers by effects until the end of their turn. Then, if [Imperialdramon: Dragon Mode] is in this Digimon's digivolution cards, trash your opponent's top security card.";
+                    }
+
+                    bool CanUseCondition(Hashtable hashtable)
                     {
-                        if (cardSource.IsDigimon || cardSource.IsTamer)
+                        if (CardEffectCommons.IsExistOnBattleArea(card))
                         {
-                            return true;
-                        }
-                    }
-                        return false;
+                            if (CardEffectCommons.IsOwnerTurn(card))                                                    
+                                {
+                                    return true;
+                                }
+                            return false;                        
+                        }                
+                        return false;          
                     }
 
-                bool CardEffectCondition1(ICardEffect cardEffect)
-                {
-                    return true;
-                }
+                    bool CanActivateCondition(Hashtable hashtable)
+                    {
+                        return true;
+                    }
 
-                ActivateClass activateClass = new ActivateClass();
-                activateClass.SetUpICardEffect("Gains raid, piercing, trash security stack", CanUseCondition, card);
-                activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDiscription());
-                cardEffects.Add(activateClass);
+                    IEnumerator ActivateCoroutine(Hashtable _hashtable)
+                    {
+                        CanNotPutFieldClass canNotPutFieldClass = new CanNotPutFieldClass();
+                        canNotPutFieldClass.SetUpICardEffect("Can't play Digimon or Tamers by effect", CanUseCondition1, card);
+                        canNotPutFieldClass.SetUpCanNotPutFieldClass(cardCondition: CardCondition, cardEffectCondition: CardEffectCondition1);
+                        card.Owner.Enemy.UntilOwnerTurnEndEffects.Add((_timing) => canNotPutFieldClass);
+                        ContinuousController.instance.PlaySE(GManager.instance.GetComponent<Effects>().DebuffSE);
 
-                bool CardEffectCondition(ICardEffect cardEffect)
-                {
-                    return cardEffect != null;
-                }
-                
-                string EffectDiscription()
-                {
-                    return "[When Digivolving] Your opponent can't play Digimon or Tamers by effects until the end of their turn. Then, if [Imperialdramon: Dragon Mode] is in this Digimon's digivolution cards, trash your opponent's top security card.";
-                }
+                        bool CanUseCondition1(Hashtable hashtable)
+                        {
+                            return true;
+                        }
 
-                bool CanUseCondition(Hashtable hashtable)
-                {
-                    if (CardEffectCommons.IsExistOnBattleArea(card))
-                    {
-                        if (CardEffectCommons.IsOwnerTurn(card))                                                    
+                        bool CardCondition(CardSource cardSource)
+                        {
+                        if (cardSource.Owner == card.Owner.Enemy)
+                        {
+                            if (cardSource.IsDigimon || cardSource.IsTamer)
                             {
                                 return true;
                             }
-                        return false;                        
-                    }                
-                    return false;          
-                }
-
-                bool CanActivateCondition(Hashtable hashtable)
-                {
-                    return true;
-                }
+                        }
+                            return false;
+                        }
 
-                IEnumerator ActivateCoroutine(Hashtable _hashtable)
-                {
-                    if(card.PermanentOfThisCard().DigivolutionCards.Count((cardSource) => cardSource.CardNames.Contains("Imperialdramon: Imperialdramon: Dragon Mode")) >= 1)
-                    {
-                        yield return ContinuousController.instance.StartCoroutine(new IDestroySecurity(
-                                player: card.Owner.Enemy,
-                                destroySecurityCount: 1,
-                                cardEffect: activateClass,
-                                fromTop: true).DestroySecurity());
+                        bool CardEffectCondition1(ICardEffect cardEffect)
+                        {
+                            return true;
+                        }
+                        if(card.PermanentOfThisCard().DigivolutionCards.Count((cardSource) => cardSource.CardNames.Contains("Imperialdramon: Imperialdramon: Dragon Mode")) >= 1)
+                        {
+                            yield return ContinuousController.instance.StartCoroutine(new IDestroySecurity(
+                                    player: card.Owner.Enemy,
+                                    destroySecurityCount: 1,
+                                    cardEffect: activateClass,
+                                    fromTop: true).DestroySecurity());
+                        }
                     }
-                }
 
-            }
+                
             }
             #endregion
 

+ 0 - 202
Assets/CardEffect/BT20/Red/BT20_076.cs

@@ -1,202 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System;
-
-namespace DCGO.CardEffects.BT20
-{
-    public class ImperialdramonAce_BT20_076 : CEntity_Effect{
-    
-        public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
-        {
-        List<ICardEffect> cardEffects = new List<ICardEffect>();
-
-
-        #region Ace - Blast DNA Digivolve
-            
-            if (timing == EffectTiming.OnCounterTiming)
-            {
-                List<BlastDNACondition> blastDNAConditions = new List<BlastDNACondition>
-                {
-                    new("DinoBeemon"),
-                    new("Paildramon")
-                };
-                cardEffects.Add(CardEffectFactory.BlastDNADigivolveEffect(card: card,
-                    blastDNAConditions: blastDNAConditions, condition: null));
-            }
-            
-        #endregion
-
-        #region DNA Digivolution
-            
-            if (timing == EffectTiming.None)
-            {
-                AddJogressConditionClass addJogressConditionClass = new AddJogressConditionClass();
-                addJogressConditionClass.SetUpICardEffect($"DNA Digivolution", CanUseCondition, card);
-                addJogressConditionClass.SetUpAddJogressConditionClass(getJogressCondition: GetJogress);
-                addJogressConditionClass.SetNotShowUI(true);
-                cardEffects.Add(addJogressConditionClass);
-                
-                //NoCanUseConditionHere
-                
-                JogressCondition GetJogress(CardSource cardSource)
-                {
-                    if (cardSource == card)
-                    {
-                        bool PermanentCondition1(Permanent permanent)
-                        {
-                            if (permanent != null)
-                            {
-                                if (permanent.TopCard != null)
-                                {
-                                    if (permanent.TopCard.Owner == card.Owner)
-                                    {
-                                        if (permanent.IsDigimon)
-                                        {
-                                            if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent,
-                                                    card))
-                                            {
-                                                if (permanent.TopCard.CardColors.Contains(CardColor.Purple))
-                                                {
-                                                    if (permanent.Levels_ForJogress(card).Contains(5))
-                                                    {
-                                                        return true;
-                                                    }
-                                                }
-                                            }
-                                        }
-                                    }
-                                }
-                            }
-                            
-                            return false;
-                        }
-                        
-                        bool PermanentCondition2(Permanent permanent)
-                        {
-                            if (permanent != null)
-                            {
-                                if (permanent.TopCard != null)
-                                {
-                                    if (permanent.TopCard.Owner == card.Owner)
-                                    {
-                                        if (permanent.IsDigimon)
-                                        {
-                                            if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent,
-                                                    card))
-                                            {
-                                                if (permanent.TopCard.CardColors.Contains(CardColor.Red))
-                                                {
-                                                    if (permanent.Levels_ForJogress(card).Contains(5))
-                                                    {
-                                                        return true;
-                                                    }
-                                                }
-                                            }
-                                        }
-                                    }
-                                }
-                            }
-                            
-                            return false;
-                        }
-                        
-                        JogressConditionElement[] elements =
-                        {
-                            new(PermanentCondition1, "a level 5 Purple Digimon"),
-                            new(PermanentCondition2, "a level 5 Red Digimon")
-                        };
-                        
-                        JogressCondition jogressCondition = new JogressCondition(elements, 0);
-                        
-                        return jogressCondition;
-                    }
-                    
-                    return null;
-                }
-            }
-            
-            #endregion
-        #region Shared On Play / When Digivolving
-                        
-            ActivateClass activateClass = new ActivateClass();
-            activateClass.SetUpICardEffect("Delete 1 Digimon", CanUseCondition, card);
-            activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDiscription());
-            cardEffects.Add(activateClass);
-            string EffectDiscription()
-            {
-                return "[When Digivolving] Delete 1 of your opponent's Digimon with 11000 DP or less. Then, if DNA digivolving, this Digimon may digivolve into [Imperialdramon: Fighter Mode] in the hand or trash without paying the cost.";
-            }
-            bool CanSelectPermanentCondition(Permanent permanent)
-            {
-                if (CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card))
-                {
-                    if (permanent.DP <= card.Owner.MaxDP_DeleteEffect(11000, activateClass))
-                    {
-                        return true;
-                    }
-                }
-
-                return false;
-            }
-            bool CanUseCondition(Hashtable hashtable)
-            {
-                if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
-                    {
-                        return CardEffectCommons.CanTriggerOnPlay(hashtable, card);
-                    }
-                return false;
-            }
-            bool CanActivateCondition(Hashtable hashtable)
-            {
-                if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
-                    {
-                        return true;
-                    }
-                return false;
-            }
-            IEnumerator ActivateCoroutine(Hashtable _hashtable)
-                {
-                    if (card.Owner.Enemy.GetBattleAreaPermanents().Count(CanSelectPermanentCondition) >= 1)
-                    {
-                        int maxCount = Math.Min(1, card.Owner.Enemy.GetBattleAreaPermanents().Count(CanSelectPermanentCondition));
-
-                        SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
-
-                        selectPermanentEffect.SetUp(
-                            selectPlayer: card.Owner,
-                            canTargetCondition: CanSelectPermanentCondition,
-                            canTargetCondition_ByPreSelecetedList: null,
-                            canEndSelectCondition: null,
-                            maxCount: maxCount,
-                            canNoSelect: false,
-                            canEndNotMax: false,
-                            selectPermanentCoroutine: null,
-                            afterSelectPermanentCoroutine: null,
-                            mode: SelectPermanentEffect.Mode.Destroy,
-                            cardEffect: activateClass);
-
-                        yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
-                    }
-                    activateClass.SetUpICardEffect("Digivolve into Imperialdramon: Fightermode", CanUseCondition, card);
-                    activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDiscription());
-                    cardEffects.Add(activateClass);      
-                
-                    bool CanSelectCardCondition (CardSource cardSource){
-                    return cardSource.EqualsCardName("Imperialdramon: Fighter Mode");
-                    }
-            
-                }
-            
-                        
-            if (timing == EffectTiming.OnEnterFieldAnyone){                
-                
-
-            }
-            #endregion
-            //TODO: Evolve
-        return cardEffects;
-                
-    }
-    }
-}

+ 0 - 11
Assets/CardEffect/BT20/Red/BT20_076.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: e5e4119e5cb3c694c8573966a219a5d7
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: