|
|
@@ -159,29 +159,33 @@ namespace DCGO.CardEffects.EX11
|
|
|
|
|
|
#region Delete Played Digimon
|
|
|
|
|
|
- Permanent selectedPermanent = selectedCard.PermanentOfThisCard();
|
|
|
+ if (selectedCard != null)
|
|
|
+ {
|
|
|
|
|
|
- ActivateClass activateClass1 = new ActivateClass();
|
|
|
- activateClass1.SetUpICardEffect("Delete this Digimon", CanUseCondition2, card);
|
|
|
- activateClass1.SetUpActivateClass(CanActivateCondition1, ActivateCoroutine1, -1, false, "");
|
|
|
- activateClass1.SetEffectSourcePermanent(selectedPermanent);
|
|
|
- CardEffectCommons.AddEffectToPlayer(effectDuration: EffectDuration.UntilEachTurnEnd, card: card, cardEffect: activateClass1, timing: EffectTiming.OnEndTurn);
|
|
|
+ Permanent selectedPermanent = selectedCard.PermanentOfThisCard();
|
|
|
|
|
|
- bool CanUseCondition2(Hashtable hashtable)
|
|
|
- {
|
|
|
- return true;
|
|
|
- }
|
|
|
+ ActivateClass activateClass1 = new ActivateClass();
|
|
|
+ activateClass1.SetUpICardEffect("Delete this Digimon", CanUseCondition2, card);
|
|
|
+ activateClass1.SetUpActivateClass(CanActivateCondition1, ActivateCoroutine1, -1, false, "");
|
|
|
+ activateClass1.SetEffectSourcePermanent(selectedPermanent);
|
|
|
+ CardEffectCommons.AddEffectToPlayer(effectDuration: EffectDuration.UntilEachTurnEnd, card: card, cardEffect: activateClass1, timing: EffectTiming.OnEndTurn);
|
|
|
|
|
|
- bool CanActivateCondition1(Hashtable hashtable)
|
|
|
- {
|
|
|
- return selectedPermanent.TopCard != null
|
|
|
- && selectedPermanent.CanBeDestroyedBySkill(activateClass1)
|
|
|
- && !selectedPermanent.TopCard.CanNotBeAffected(activateClass1);
|
|
|
- }
|
|
|
+ bool CanUseCondition2(Hashtable hashtable)
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
|
|
|
- IEnumerator ActivateCoroutine1(Hashtable _hashtable1)
|
|
|
- {
|
|
|
- yield return ContinuousController.instance.StartCoroutine(new DestroyPermanentsClass(new List<Permanent>() { selectedPermanent }, CardEffectCommons.CardEffectHashtable(activateClass1)).Destroy());
|
|
|
+ bool CanActivateCondition1(Hashtable hashtable)
|
|
|
+ {
|
|
|
+ return selectedPermanent.TopCard != null
|
|
|
+ && selectedPermanent.CanBeDestroyedBySkill(activateClass1)
|
|
|
+ && !selectedPermanent.TopCard.CanNotBeAffected(activateClass1);
|
|
|
+ }
|
|
|
+
|
|
|
+ IEnumerator ActivateCoroutine1(Hashtable _hashtable1)
|
|
|
+ {
|
|
|
+ yield return ContinuousController.instance.StartCoroutine(new DestroyPermanentsClass(new List<Permanent>() { selectedPermanent }, CardEffectCommons.CardEffectHashtable(activateClass1)).Destroy());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
#endregion
|