Lewisaaronwelch před 11 měsíci
rodič
revize
e037f3182a

+ 17 - 14
Assets/CardEffect/EX10/Black/EX10_062.cs

@@ -65,7 +65,7 @@ namespace DCGO.CardEffects.EX10
 
             #region All Turns
 
-            if(timing == EffectTiming.OnLinkCardDiscarded)
+            if (timing == EffectTiming.OnLinkCardDiscarded)
             {
                 ActivateClass activateClass = new ActivateClass();
                 activateClass.SetUpICardEffect("Suspend to draw on trash", CanUseCondition, card);
@@ -97,11 +97,13 @@ namespace DCGO.CardEffects.EX10
             #endregion
 
             #region End of turn
+
             if (timing == EffectTiming.OnEndTurn)
             {
                 ActivateClass activateClass = new ActivateClass();
-                activateClass.SetUpICardEffect("May app fuse", CanUseCondition, card);
+                activateClass.SetUpICardEffect("App fuse 1 digimon into digimon in hand", CanUseCondition, card);
                 activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, 1, true, EffectDescription());
+                activateClass.SetHashString("EX10_062_AppFusion");
                 cardEffects.Add(activateClass);
 
                 string EffectDescription()
@@ -116,17 +118,8 @@ namespace DCGO.CardEffects.EX10
 
                 bool CanActivateCondition(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.IsExistOnBattleArea(card))
-                    {
-                        if (CardEffectCommons.IsOwnerTurn(card))
-                        {
-                            if (CardEffectCommons.HasMatchConditionOwnersPermanent(card, perm => CardEffectCommons.IsExistOnBattleAreaDigimon(card))) {
-                                return true;
-                            }
-                        }
-                        
-                    }
-                    return false;
+                    return CardEffectCommons.IsExistOnBattleArea(card)
+                        && CardEffectCommons.IsOwnerTurn(card);
                 }
 
                 bool CanSelectPermanent(Permanent permanent)
@@ -141,10 +134,10 @@ namespace DCGO.CardEffects.EX10
                                     return true;
                             }
                         }
-
                     }
                     return false;
                 }
+
                 bool CanSelectCard(CardSource card, Permanent permanent)
                 {
                     if (CardEffectCommons.IsExistOnHand(card))
@@ -231,6 +224,16 @@ namespace DCGO.CardEffects.EX10
                     }
                 }
             }
+
+            #endregion
+
+            #region Security Effect
+
+            if (timing == EffectTiming.SecuritySkill)
+            {
+                cardEffects.Add(CardEffectFactory.PlaySelfTamerSecurityEffect(card));
+            }
+
             #endregion
 
             return cardEffects;

+ 0 - 0
Assets/CardEffect/EX10/Black/EX10_096.cs → Assets/CardEffect/EX10/Black/EX10_069.cs


+ 0 - 0
Assets/CardEffect/EX10/Black/EX10_096.cs.meta → Assets/CardEffect/EX10/Black/EX10_069.cs.meta


+ 7 - 25
Assets/CardEffect/EX10/Black/EX10_070.cs

@@ -10,8 +10,8 @@ namespace DCGO.CardEffects.EX10
         {
             List<ICardEffect> cardEffects = new List<ICardEffect>();
 
-
             #region Ignore Color Requirment
+
             if (timing == EffectTiming.None)
             {
                 IgnoreColorConditionClass ignoreColorConditionClass = new IgnoreColorConditionClass();
@@ -45,9 +45,11 @@ namespace DCGO.CardEffects.EX10
                     return cardSource == card;
                 }
             }
+
             #endregion
 
             #region Main
+
             if (timing == EffectTiming.OptionSkill)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -60,11 +62,6 @@ namespace DCGO.CardEffects.EX10
                     return "[Main] <Draw 1>. Then, place this card in the battle area.";
                 }
 
-                bool CanSelectCardCondition(CardSource cardSource)
-                {
-                    return cardSource.EqualsTraits("Appmon") || cardSource.EqualsTraits("App Driver");
-                }
-
                 bool CanUseCondition(Hashtable hashtable)
                 {
                     return CardEffectCommons.CanTriggerOptionMainEffect(hashtable, card);
@@ -72,29 +69,15 @@ namespace DCGO.CardEffects.EX10
 
                 IEnumerator ActivateCoroutine(Hashtable _hashtable)
                 {
-                    yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.SimplifiedRevealDeckTopCardsAndSelect(
-                        revealCount: 3,
-                        simplifiedSelectCardConditions:
-                        new SimplifiedSelectCardConditionClass[]
-                        {
-                        new SimplifiedSelectCardConditionClass(
-                            canTargetCondition:CanSelectCardCondition,
-                            message: "Select 1 card with [Appmon]/[App Driver] in its traits.",
-                            mode: SelectCardEffect.Mode.AddHand,
-                            maxCount: 1,
-                            selectCardCoroutine: null)
-                        },
-                        remainingCardsPlace: RemainingCardsPlace.Trash,
-                        activateClass: activateClass
-                    ));
-
+                    yield return ContinuousController.instance.StartCoroutine(new DrawClass(card.Owner, 1, activateClass).Draw());
                     yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.PlaceDelayOptionCards(card: card, cardEffect: activateClass));
                 }
             }
-            #endregion
 
+            #endregion
 
             #region Delay - link when link card trashed
+
             if (timing == EffectTiming.OnLinkCardDiscarded)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -234,8 +217,8 @@ namespace DCGO.CardEffects.EX10
                     }
                 }
             }
-            #endregion
 
+            #endregion
 
             #region Security
 
@@ -266,7 +249,6 @@ namespace DCGO.CardEffects.EX10
 
             #endregion
 
-
             return cardEffects;
         }
     }

+ 69 - 54
Assets/CardEffect/EX10/Black/EX10_073.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Collections;
 using System.Collections.Generic;
-using System.Linq;
 
 //EX10 Deusmon
 namespace DCGO.CardEffects.EX10
@@ -13,6 +12,21 @@ namespace DCGO.CardEffects.EX10
             List<ICardEffect> cardEffects = new List<ICardEffect>();
 
             #region Static effects
+
+            #region Alternative Digivolution Cost
+
+            if (timing == EffectTiming.None)
+            {
+                bool PermanentCondition(Permanent targetPermanent)
+                {
+                    return targetPermanent.TopCard.HasUltimateAppTraits;
+                }
+
+                cardEffects.Add(CardEffectFactory.AddSelfDigivolutionRequirementStaticEffect(permanentCondition: PermanentCondition, digivolutionCost: 5, ignoreDigivolutionRequirement: false, card: card, condition: null));
+            }
+
+            #endregion
+
             #region Link +1
 
             if (timing == EffectTiming.None) cardEffects.Add(CardEffectFactory.ChangeSelfLinkMaxStaticEffect(1, false, card, null));
@@ -106,13 +120,16 @@ namespace DCGO.CardEffects.EX10
             }
 
             #endregion
+
             #endregion
 
             #region When Digivolving/EoOT shared
+
             bool CanActivateConditionShared(Hashtable hashtable)
             {
-                return CardEffectCommons.IsExistOnBattleAreaDigimon(card) &&
-                    (card.Owner.HandCards.Count > 0 || card.PermanentOfThisCard().cardSources.Any(source => source.CanLinkToTargetPermanent(card.PermanentOfThisCard(), false)));
+                return CardEffectCommons.IsExistOnBattleAreaDigimon(card)
+                    && (CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectLinkCard)
+                    || CardEffectCommons.HasMatchConditionOwnersPermanent(card, ThisPermamentCondition));
             }
 
             bool CanSelectLinkCard(CardSource cardSource)
@@ -120,10 +137,16 @@ namespace DCGO.CardEffects.EX10
                 return cardSource.CanLinkToTargetPermanent(card.PermanentOfThisCard(), false);
             }
 
+            bool ThisPermamentCondition(Permanent permanent)
+            {
+                return permanent == card.PermanentOfThisCard()
+                    && permanent.DigivolutionCards.Exists(CanSelectLinkCard);
+            }
+
             IEnumerator SharedActivateCoroutine(Hashtable hashtable, ActivateClass activateClass)
             {
                 bool hasInHand = CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectLinkCard);
-                bool hasInSources = card.PermanentOfThisCard().DigivolutionCards.Count(CanSelectLinkCard) > 0;
+                bool hasInSources = card.PermanentOfThisCard().DigivolutionCards.Exists(CanSelectLinkCard);
                 CardSource selectedCard = null;
 
                 IEnumerator SelectCardCoroutine(CardSource cardSource)
@@ -132,6 +155,32 @@ namespace DCGO.CardEffects.EX10
                     yield return null;
                 }
 
+                if (hasInSources)
+                {
+                    SelectHandEffect selectHandEffect = GManager.instance.GetComponent<SelectHandEffect>();
+                    selectHandEffect.SetUp(
+                                selectPlayer: card.Owner,
+                                canTargetCondition: CanSelectLinkCard,
+                                canTargetCondition_ByPreSelecetedList: null,
+                                canEndSelectCondition: null,
+                                maxCount: 1,
+                                canNoSelect: true,
+                                canEndNotMax: false,
+                                isShowOpponent: true,
+                                selectCardCoroutine: SelectCardCoroutine,
+                                afterSelectCardCoroutine: null,
+                                mode: SelectHandEffect.Mode.Custom,
+                                cardEffect: activateClass);
+                    selectHandEffect.SetUpCustomMessage("Select 1 card to link", "The opponent is selecting 1 card to link");
+
+                    yield return ContinuousController.instance.StartCoroutine(selectHandEffect.Activate());
+                    if (selectedCard != null)
+                    {
+                        yield return ContinuousController.instance.StartCoroutine(card.PermanentOfThisCard().AddLinkCard(selectedCard, activateClass));
+                        selectedCard = null;
+                    }
+                }
+
                 if (hasInHand)
                 {
                     SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
@@ -155,43 +204,15 @@ namespace DCGO.CardEffects.EX10
 
                     selectCardEffect.SetUpCustomMessage("Select 1 card to link", "The opponent is selecting 1 card to link");
 
-                    yield return StartCoroutine(selectCardEffect.Activate());
-                }
-
-                if (selectedCard != null)
-                {
-                    yield return ContinuousController.instance.StartCoroutine(card.PermanentOfThisCard().AddLinkCard(selectedCard, activateClass));
-                    selectedCard = null;
+                    yield return ContinuousController.instance.StartCoroutine(selectCardEffect.Activate());
+                    if (selectedCard != null) yield return ContinuousController.instance.StartCoroutine(card.PermanentOfThisCard().AddLinkCard(selectedCard, activateClass));
                 }
-
-                if (hasInSources)
-                {
-                    SelectHandEffect selectHandEffect = GManager.instance.GetComponent<SelectHandEffect>();
-                    selectHandEffect.SetUp(
-                                selectPlayer: card.Owner,
-                                canTargetCondition: CanSelectLinkCard,
-                                canTargetCondition_ByPreSelecetedList: null,
-                                canEndSelectCondition: null,
-                                maxCount: 1,
-                                canNoSelect: true,
-                                canEndNotMax: false,
-                                isShowOpponent: true,
-                                selectCardCoroutine: SelectCardCoroutine,
-                                afterSelectCardCoroutine: null,
-                                mode: SelectHandEffect.Mode.Custom,
-                                cardEffect: activateClass);
-                    selectHandEffect.SetUpCustomMessage("Select 1 card to link", "The opponent is selecting 1 card to link");
-
-                    yield return StartCoroutine(selectHandEffect.Activate());
-                }
-
-                if (selectedCard != null)
-                    yield return ContinuousController.instance.StartCoroutine(card.PermanentOfThisCard().AddLinkCard(selectedCard, activateClass));
-
             }
+
             #endregion
 
             #region When Digivolving
+
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -204,19 +225,15 @@ namespace DCGO.CardEffects.EX10
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
-                    {
-                        if (CardEffectCommons.CanTriggerWhenDigivolving(hashtable, card))
-                        {
-                            return true;
-                        }
-                    }
-                    return false;
+                    return CardEffectCommons.IsExistOnBattleAreaDigimon(card)
+                        && CardEffectCommons.CanTriggerWhenDigivolving(hashtable, card);
                 }
             }
+
             #endregion
 
             #region End Of Opponent's Turn
+
             if (timing == EffectTiming.OnEndTurn)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -229,20 +246,16 @@ namespace DCGO.CardEffects.EX10
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
-                    {
-                        if (CardEffectCommons.IsOpponentTurn(card))
-                        {
-                            return true;
-                        }
-                    }
-                    return false;
+                    return CardEffectCommons.IsExistOnBattleAreaDigimon(card)
+                        && CardEffectCommons.IsOpponentTurn(card);
                 }
             }
+
             #endregion
 
             #region All Turns
-            if(timing == EffectTiming.OnLinkCardDiscarded)
+
+            if (timing == EffectTiming.OnLinkCardDiscarded)
             {
                 ActivateClass activateClass = new ActivateClass();
                 activateClass.SetUpICardEffect("Delete when trash", CanUseCondition, card);
@@ -254,7 +267,7 @@ namespace DCGO.CardEffects.EX10
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBattleAreaDigimon(card) && 
+                    return CardEffectCommons.IsExistOnBattleAreaDigimon(card) &&
                         CardEffectCommons.CanTriggerOnTrashLinkedCard(hashtable, perm => perm == card.PermanentOfThisCard(), cardEffect => cardEffect != null, source => source != null);
                 }
 
@@ -298,7 +311,9 @@ namespace DCGO.CardEffects.EX10
                     }
                 }
             }
+
             #endregion
+
             return cardEffects;
         }
     }

+ 10 - 2
Assets/CardEffect/EX10/Purple/EX10_064.cs

@@ -12,6 +12,7 @@ namespace DCGO.CardEffects.EX10
             List<ICardEffect> cardEffects = new List<ICardEffect>();
 
             #region Name Change
+
             if (timing == EffectTiming.None)
             {
                 ChangeCardNamesClass changeCardNamesClass = new ChangeCardNamesClass();
@@ -59,9 +60,11 @@ namespace DCGO.CardEffects.EX10
                     return CardNames;
                 }
             }
+
             #endregion
 
             #region Start of Main Phase
+
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -89,13 +92,13 @@ namespace DCGO.CardEffects.EX10
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBreedingArea(card) &&
+                    return CardEffectCommons.IsExistOnBattleArea(card) &&
                            CardEffectCommons.IsOwnerTurn(card);
                 }
 
                 bool CanActivateCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBreedingArea(card) &&
+                    return CardEffectCommons.IsExistOnBattleArea(card) &&
                            (CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectCardCondition) ||
                            CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, CanSelectCardCondition));
                 }
@@ -217,9 +220,11 @@ namespace DCGO.CardEffects.EX10
                     }
                 }
             }
+
             #endregion
 
             #region All Turns
+
             if (timing == EffectTiming.BeforePayCost)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -338,13 +343,16 @@ namespace DCGO.CardEffects.EX10
                     }
                 }
             }
+
             #endregion
 
             #region Security
+
             if (timing == EffectTiming.SecuritySkill)
             {
                 cardEffects.Add(CardEffectFactory.PlaySelfTamerSecurityEffect(card));
             }
+
             #endregion
 
             return cardEffects;

+ 13 - 7
Assets/CardEffect/EX10/Purple/EX10_065.cs

@@ -24,6 +24,8 @@ namespace DCGO.CardEffects.EX10
 
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
+                List<Permanent> playedPermanents = new List<Permanent>();
+
                 ActivateClass activateClass = new ActivateClass();
                 activateClass.SetUpICardEffect("Delete this tamer, give one of your played digimon Rush, then gain 1 memory", CanUseCondition, card);
                 activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDiscription());
@@ -37,7 +39,7 @@ namespace DCGO.CardEffects.EX10
                 bool CanUseCondition(Hashtable hashtable)
                 {
                     return CardEffectCommons.IsExistOnField(card) &&
-                           CardEffectCommons.CanTriggerOnPermanentPlay(hashtable, PermamentCondition);
+                           CardEffectCommons.CanTriggerOnPermanentPlay(hashtable, CanTriggerCondition);
                 }
 
                 bool CanActivateCondition(Hashtable hashtable)
@@ -45,6 +47,16 @@ namespace DCGO.CardEffects.EX10
                     return CardEffectCommons.IsExistOnField(card);
                 }
 
+                bool CanTriggerCondition(Permanent permanent)
+                {
+                    if (PermamentCondition(permanent))
+                    {
+                        playedPermanents.Add(permanent);
+                        return true;
+                    }
+                    return false;
+                }
+
                 bool PermamentCondition(Permanent permanent)
                 {
                     return CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card)
@@ -53,12 +65,6 @@ namespace DCGO.CardEffects.EX10
 
                 IEnumerator ActivateCoroutine(Hashtable hashtable)
                 {
-                    List<Permanent> playedPermanents = null;
-                    foreach (Hashtable hash in CardEffectCommons.GetHashtablesFromHashtable(hashtable))
-                    {
-                        playedPermanents.Add(CardEffectCommons.GetPermanentFromHashtable(hash));
-                    }
-
                     if (playedPermanents != null)
                     {
                         yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.DeletePeremanentAndProcessAccordingToResult(

+ 11 - 4
Assets/CardEffect/EX10/Purple/EX10_067.cs

@@ -2,7 +2,8 @@
 using System.Collections.Generic;
 using System.Linq;
 
-namespace DCGO.CardEffects
+// Ryoma Mogami
+namespace DCGO.CardEffects.EX10
 {
     public class EX10_067 : CEntity_Effect
     {
@@ -11,13 +12,16 @@ namespace DCGO.CardEffects
             List<ICardEffect> cardEffects = new List<ICardEffect>();
 
             #region Start of Your Turn
+
             if (timing == EffectTiming.OnStartTurn)
             {
                 cardEffects.Add(CardEffectFactory.SetMemoryTo3TamerEffect(card));
             }
+
             #endregion
 
             #region Your Turn
+
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -69,7 +73,7 @@ namespace DCGO.CardEffects
                     {
                         if (CardEffectCommons.CanActivateSuspendCostEffect(card))
                         {
-                            if(CardEffectCommons.HasMatchConditionPermanent(IsTamerHasSource))
+                            if (CardEffectCommons.HasMatchConditionPermanent(IsTamerHasSource))
                                 return true;
                         }
                     }
@@ -111,7 +115,7 @@ namespace DCGO.CardEffects
                         yield return null;
                     }
 
-                    if(selectedTamerPermanent != null)
+                    if (selectedTamerPermanent != null)
                     {
                         SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
 
@@ -145,7 +149,7 @@ namespace DCGO.CardEffects
                             yield return null;
                         }
 
-                        if(selectedSource.Count > 0)
+                        if (selectedSource.Count > 0)
                         {
                             List<Permanent> permanents = CardEffectCommons.GetPlayedPermanentsFromEnterFieldHashtable(
                                 hashtable: hashtable,
@@ -155,13 +159,16 @@ namespace DCGO.CardEffects
                     }
                 }
             }
+
             #endregion
 
             #region Security Effect
+
             if (timing == EffectTiming.SecuritySkill)
             {
                 cardEffects.Add(CardEffectFactory.PlaySelfTamerSecurityEffect(card));
             }
+
             #endregion
 
             return cardEffects;

+ 30 - 19
Assets/CardEffect/EX10/Purple/EX10_071.cs

@@ -13,6 +13,7 @@ namespace DCGO.CardEffects.EX10
             List<ICardEffect> cardEffects = new List<ICardEffect>();
 
             #region Ignore Color Requirement
+
             if (timing == EffectTiming.None)
             {
                 IgnoreColorConditionClass ignoreColorConditionClass = new IgnoreColorConditionClass();
@@ -22,9 +23,9 @@ namespace DCGO.CardEffects.EX10
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.HasMatchConditionPermanent((permanent) => 
+                    return CardEffectCommons.HasMatchConditionPermanent((permanent) =>
                            CardEffectCommons.IsOwnerPermanent(permanent, card) &&
-                           permanent.TopCard.ContainsCardName("Lucemon"),true);
+                           permanent.TopCard.ContainsCardName("Lucemon"), true);
                 }
 
                 bool CardCondition(CardSource cardSource)
@@ -32,9 +33,11 @@ namespace DCGO.CardEffects.EX10
                     return cardSource == card;
                 }
             }
+
             #endregion
 
             #region Main Effect
+
             if (timing == EffectTiming.OptionSkill)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -90,7 +93,7 @@ namespace DCGO.CardEffects.EX10
                             yield return null;
                         }
 
-                        if(selectedPermanent != null)
+                        if (selectedPermanent != null)
                         {
                             yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.GainRaid(
                                 targetPermanent: selectedPermanent,
@@ -116,9 +119,11 @@ namespace DCGO.CardEffects.EX10
                     }
                 }
             }
+
             #endregion
 
             #region End Of Your Turn
+
             if (timing == EffectTiming.OnEndTurn)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -199,36 +204,41 @@ namespace DCGO.CardEffects.EX10
 
                         if (selectedPermanent != null)
                         {
-                            SelectAttackEffect selectAttackEffect = GManager.instance.GetComponent<SelectAttackEffect>();
+                            if (selectedPermanent.CanAttack(activateClass, withoutTap: true))
+                            {
+                                SelectAttackEffect selectAttackEffect = GManager.instance.GetComponent<SelectAttackEffect>();
 
-                            selectAttackEffect.SetUp(
-                                attacker: card.PermanentOfThisCard(),
-                                canAttackPlayerCondition: () => true,
-                                defenderCondition: (permanent) => true,
-                                cardEffect: activateClass);
+                                selectAttackEffect.SetUp(
+                                    attacker: selectedPermanent,
+                                    canAttackPlayerCondition: () => true,
+                                    defenderCondition: (permanent) => true,
+                                    cardEffect: activateClass);
 
-                            selectAttackEffect.SetWithoutTap();
-                            selectAttackEffect.SetCanNotSelectNotAttack();
+                                selectAttackEffect.SetCanNotSelectNotAttack();
+                                selectAttackEffect.SetWithoutTap();
 
-                            yield return ContinuousController.instance.StartCoroutine(selectAttackEffect.Activate());
+                                yield return ContinuousController.instance.StartCoroutine(selectAttackEffect.Activate());
+                            }
                         }
                     }
                 }
             }
+
             #endregion
 
             #region Security
+
             if (timing == EffectTiming.SecuritySkill)
             {
                 ActivateClass activateClass = new ActivateClass();
-                activateClass.SetUpICardEffect("Play 1 Digimon from trash", CanUseCondition, card);
+                activateClass.SetUpICardEffect("Play 1 [Lucemon] from trash", CanUseCondition, card);
                 activateClass.SetUpActivateClass(null, ActivateCoroutine, -1, true, EffectDiscription());
                 activateClass.SetIsSecurityEffect(true);
                 cardEffects.Add(activateClass);
 
                 string EffectDiscription()
                 {
-                    return "[Security] You may play 1 [Lucemon] in its name from your trash without paying the cost.";
+                    return "[Security] You may play 1 [Lucemon] from your trash without paying the cost.";
                 }
 
                 bool CanSelectCardCondition(CardSource cardSource)
@@ -239,7 +249,7 @@ namespace DCGO.CardEffects.EX10
                         {
                             if (CardEffectCommons.CanPlayAsNewPermanent(cardSource: cardSource, payCost: false, cardEffect: activateClass))
                             {
-                                if (cardSource.ContainsCardName("Lucemon"))
+                                if (cardSource.EqualsCardName("Lucemon"))
                                 {
                                     return true;
                                 }
@@ -272,7 +282,7 @@ namespace DCGO.CardEffects.EX10
                                     canNoSelect: () => true,
                                     selectCardCoroutine: SelectCardCoroutine,
                                     afterSelectCardCoroutine: null,
-                                    message: "Select 1 card to play.",
+                                    message: "Select 1 [Lucemon] to play.",
                                     maxCount: maxCount,
                                     canEndNotMax: false,
                                     isShowOpponent: true,
@@ -283,10 +293,10 @@ namespace DCGO.CardEffects.EX10
                                     selectPlayer: card.Owner,
                                     cardEffect: activateClass);
 
-                        selectCardEffect.SetUpCustomMessage("Select 1 card to play.", "The opponent is selecting 1 card to play.");
-                        selectCardEffect.SetUpCustomMessage_ShowCard("Played Card");
+                        selectCardEffect.SetUpCustomMessage("Select 1 digimon to play.", "The opponent is selecting 1 digimon to play.");
+                        selectCardEffect.SetUpCustomMessage_ShowCard("Played Digimon");
 
-                        yield return StartCoroutine(selectCardEffect.Activate());
+                        yield return ContinuousController.instance.StartCoroutine(selectCardEffect.Activate());
 
                         IEnumerator SelectCardCoroutine(CardSource cardSource)
                         {
@@ -299,6 +309,7 @@ namespace DCGO.CardEffects.EX10
                     }
                 }
             }
+
             #endregion
 
             return cardEffects;

+ 17 - 6
Assets/CardEffect/EX10/Purple/EX10_074.cs

@@ -33,10 +33,12 @@ namespace DCGO.CardEffects.EX10
             #endregion
 
             #region Blast Digivolve
+
             if (timing == EffectTiming.OnCounterTiming)
             {
                 cardEffects.Add(CardEffectFactory.BlastDigivolveEffect(card: card, condition: null));
             }
+
             #endregion
 
             #region Trash, then Delete effect
@@ -59,8 +61,8 @@ namespace DCGO.CardEffects.EX10
                 bool CanSelectPermanentCondition(Permanent permanent)
                 {
                     return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card) &&
-                           permanent.TopCard.HasPlayCost && 
-                           permanent.TopCard.GetCostItself <= 6 + (3 * Mathf.FloorToInt(card.Owner.TrashCards.Count/2));
+                           permanent.TopCard.HasPlayCost &&
+                           permanent.TopCard.GetCostItself <= 6 + (3 * Mathf.FloorToInt(card.Owner.TrashCards.Count / 2));
                 }
 
                 if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
@@ -85,6 +87,7 @@ namespace DCGO.CardEffects.EX10
             }
 
             #region On Play
+
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -98,9 +101,11 @@ namespace DCGO.CardEffects.EX10
                            CardEffectCommons.CanTriggerOnPlay(hashtable, card);
                 }
             }
+
             #endregion
 
             #region When Digivolving
+
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -114,9 +119,11 @@ namespace DCGO.CardEffects.EX10
                            CardEffectCommons.CanTriggerWhenDigivolving(hashtable, card);
                 }
             }
+
             #endregion
 
             #region When Attacking
+
             if (timing == EffectTiming.OnAllyAttack)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -130,11 +137,13 @@ namespace DCGO.CardEffects.EX10
                            CardEffectCommons.CanTriggerOnAttack(hashtable, card);
                 }
             }
+
             #endregion
 
             #endregion
 
             #region Return 2, De-Digivolve 2 effect
+
             string SecondEffectShortText() => "Return 2 cards to top of deck, <De-Digivolve 2>";
             string SecondEffectDiscription(string tag)
             {
@@ -150,7 +159,7 @@ namespace DCGO.CardEffects.EX10
             {
                 bool cardsAdded = false;
 
-                if(card.Owner.TrashCards.Count >= 10)
+                if (card.Owner.TrashCards.Count >= 10)
                 {
                     SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
 
@@ -183,10 +192,8 @@ namespace DCGO.CardEffects.EX10
                     {
                         if (cardSources.Count == 2)
                         {
-                            yield return ContinuousController.instance.StartCoroutine(CardObjectController.AddLibraryBottomCards(cardSources));
-
+                            yield return ContinuousController.instance.StartCoroutine(CardObjectController.AddLibraryTopCards(cardSources));
                             yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().ShowCardEffect(cardSources, "Deck Top Cards", true, true));
-
                             cardsAdded = true;
                         }
                     }
@@ -234,6 +241,7 @@ namespace DCGO.CardEffects.EX10
             }
 
             #region On Play
+
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -247,9 +255,11 @@ namespace DCGO.CardEffects.EX10
                            CardEffectCommons.CanTriggerOnPlay(hashtable, card);
                 }
             }
+
             #endregion
 
             #region When Digivolving
+
             if (timing == EffectTiming.OnEnterFieldAnyone)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -263,6 +273,7 @@ namespace DCGO.CardEffects.EX10
                            CardEffectCommons.CanTriggerWhenDigivolving(hashtable, card);
                 }
             }
+
             #endregion
 
             #endregion