|
@@ -67,7 +67,7 @@ namespace DCGO.CardEffects.EX8
|
|
|
if (timing == EffectTiming.OnEnterFieldAnyone)
|
|
if (timing == EffectTiming.OnEnterFieldAnyone)
|
|
|
{
|
|
{
|
|
|
ActivateClass activateClass = new ActivateClass();
|
|
ActivateClass activateClass = new ActivateClass();
|
|
|
- activateClass.SetUpICardEffect("Place 1 of your other Digimon as this Digimon's bottom digivolution card to unsuspend this Digimon.", CanUseCondition, card);
|
|
|
|
|
|
|
+ activateClass.SetUpICardEffect("Place 1 of your Digimon with [DS] trait from trash as this Digimon's bottom digivolution card to unsuspend this Digimon.", CanUseCondition, card);
|
|
|
activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDescription());
|
|
activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDescription());
|
|
|
cardEffects.Add(activateClass);
|
|
cardEffects.Add(activateClass);
|
|
|
|
|
|
|
@@ -76,17 +76,13 @@ namespace DCGO.CardEffects.EX8
|
|
|
return "[On Play] You may place 1 Digimon card with the [DS] trait from your trash as this Digimon's bottom digivolution card.";
|
|
return "[On Play] You may place 1 Digimon card with the [DS] trait from your trash as this Digimon's bottom digivolution card.";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- bool CanSelectPermanentCondition(Permanent permanent)
|
|
|
|
|
|
|
+ bool CanSelectCardCondition(CardSource source)
|
|
|
{
|
|
{
|
|
|
- if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
|
|
|
|
|
|
|
+ if (source.IsDigimon)
|
|
|
{
|
|
{
|
|
|
- if (permanent != card.PermanentOfThisCard())
|
|
|
|
|
|
|
+ if (source.EqualsTraits("DS"))
|
|
|
{
|
|
{
|
|
|
- if (permanent.TopCard.EqualsTraits("DS"))
|
|
|
|
|
- {
|
|
|
|
|
- if (!permanent.TopCard.Equals(card))
|
|
|
|
|
- return true;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -104,7 +100,7 @@ namespace DCGO.CardEffects.EX8
|
|
|
{
|
|
{
|
|
|
if (!card.PermanentOfThisCard().IsToken)
|
|
if (!card.PermanentOfThisCard().IsToken)
|
|
|
{
|
|
{
|
|
|
- if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
|
|
|
|
|
|
|
+ if (CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, CanSelectCardCondition))
|
|
|
{
|
|
{
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
@@ -118,36 +114,33 @@ namespace DCGO.CardEffects.EX8
|
|
|
{
|
|
{
|
|
|
List<CardSource> selectedCards = new List<CardSource>();
|
|
List<CardSource> selectedCards = new List<CardSource>();
|
|
|
|
|
|
|
|
- SelectPermanentEffect selectPermanentEffect =
|
|
|
|
|
- GManager.instance.GetComponent<SelectPermanentEffect>();
|
|
|
|
|
-
|
|
|
|
|
- selectPermanentEffect.SetUp(
|
|
|
|
|
- selectPlayer: card.Owner,
|
|
|
|
|
- canTargetCondition: CanSelectPermanentCondition,
|
|
|
|
|
- canTargetCondition_ByPreSelecetedList: null,
|
|
|
|
|
- canEndSelectCondition: null,
|
|
|
|
|
- maxCount: 1,
|
|
|
|
|
- canNoSelect: true,
|
|
|
|
|
- canEndNotMax: false,
|
|
|
|
|
- selectPermanentCoroutine: SelectPermanentCoroutine,
|
|
|
|
|
- afterSelectPermanentCoroutine: null,
|
|
|
|
|
- mode: SelectPermanentEffect.Mode.Custom,
|
|
|
|
|
- cardEffect: activateClass);
|
|
|
|
|
-
|
|
|
|
|
- selectPermanentEffect.SetUpCustomMessage(
|
|
|
|
|
- "Select 1 card to place on bottom of digivolution cards.",
|
|
|
|
|
- "The opponent is selecting 1 card to place on bottom of digivolution cards.");
|
|
|
|
|
-
|
|
|
|
|
- yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
|
|
|
|
|
-
|
|
|
|
|
- IEnumerator SelectPermanentCoroutine(Permanent permanent)
|
|
|
|
|
|
|
+ SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
|
|
|
|
|
+
|
|
|
|
|
+ selectCardEffect.SetUp(
|
|
|
|
|
+ canTargetCondition: CanSelectCardCondition,
|
|
|
|
|
+ canTargetCondition_ByPreSelecetedList: null,
|
|
|
|
|
+ canEndSelectCondition: null,
|
|
|
|
|
+ canNoSelect: () => true,
|
|
|
|
|
+ selectCardCoroutine: AfterSelectCardCoroutine,
|
|
|
|
|
+ afterSelectCardCoroutine: null,
|
|
|
|
|
+ message: "Select 1 card to place on bottom of digivolution cards.",
|
|
|
|
|
+ maxCount: 1,
|
|
|
|
|
+ canEndNotMax: false,
|
|
|
|
|
+ isShowOpponent: false,
|
|
|
|
|
+ mode: SelectCardEffect.Mode.Custom,
|
|
|
|
|
+ root: SelectCardEffect.Root.Trash,
|
|
|
|
|
+ customRootCardList: null,
|
|
|
|
|
+ canLookReverseCard: true,
|
|
|
|
|
+ selectPlayer: card.Owner,
|
|
|
|
|
+ cardEffect: activateClass);
|
|
|
|
|
+
|
|
|
|
|
+ yield return ContinuousController.instance.StartCoroutine(selectCardEffect.Activate());
|
|
|
|
|
+
|
|
|
|
|
+ IEnumerator AfterSelectCardCoroutine(CardSource source)
|
|
|
{
|
|
{
|
|
|
- selectedCards.Add(permanent.TopCard);
|
|
|
|
|
|
|
+ selectedCards.Add(source);
|
|
|
|
|
|
|
|
- yield return ContinuousController.instance.StartCoroutine(new IPlacePermanentToDigivolutionCards(
|
|
|
|
|
- new List<Permanent[]>() { new Permanent[] { permanent, card.PermanentOfThisCard() } },
|
|
|
|
|
- false,
|
|
|
|
|
- activateClass).PlacePermanentToDigivolutionCards());
|
|
|
|
|
|
|
+ yield return ContinuousController.instance.StartCoroutine(card.PermanentOfThisCard().AddDigivolutionCardsBottom(selectedCards, activateClass));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -157,7 +150,7 @@ namespace DCGO.CardEffects.EX8
|
|
|
if (timing == EffectTiming.OnEnterFieldAnyone)
|
|
if (timing == EffectTiming.OnEnterFieldAnyone)
|
|
|
{
|
|
{
|
|
|
ActivateClass activateClass = new ActivateClass();
|
|
ActivateClass activateClass = new ActivateClass();
|
|
|
- activateClass.SetUpICardEffect("Place 1 of your other Digimon as this Digimon's bottom digivolution card to unsuspend this Digimon.", CanUseCondition, card);
|
|
|
|
|
|
|
+ activateClass.SetUpICardEffect("Place 1 of your Digimon with [DS] trait from trash as this Digimon's bottom digivolution card to unsuspend this Digimon.", CanUseCondition, card);
|
|
|
activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDescription());
|
|
activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDescription());
|
|
|
cardEffects.Add(activateClass);
|
|
cardEffects.Add(activateClass);
|
|
|
|
|
|