Explorar o código

Ladydevimon X antibody cardEffect and token

Quick-Bolt %!s(int64=2) %!d(string=hai) anos
pai
achega
ef9c3f87ed

+ 1 - 1
Assets/CardEffect/EX7/Purple/LadyDevimonXAntibody_EX7_058.cs

@@ -185,7 +185,7 @@ namespace DCGO.CardEffects.EX7
 
                     if (CanActivateSecondEffectCondition(hashtable))
                     {
-                        
+                        yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.PlayVoléeZerdrücken(activateClass));
                     }
                 }
             }

+ 10 - 0
Assets/CardEffect/EX7/Purple/Orochimon_EX7_056.cs

@@ -11,6 +11,16 @@ namespace DCGO.CardEffects.EX7
         {
             List<ICardEffect> cardEffects = new List<ICardEffect>();
 
+            #region Blocker
+            if (timing == EffectTiming.None)
+            {
+                cardEffects.Add(CardEffectFactory.BlockerSelfStaticEffect(
+                    isInheritedEffect: false,
+                    card: card,
+                    condition: null));
+            }
+            #endregion
+
             #region On Deletion
             if (timing == EffectTiming.OnDestroyedAnyone)
             {

+ 32 - 0
Assets/CardEffect/EX7/Purple/VoléeZerdrücken_EX7_030_token.cs

@@ -0,0 +1,32 @@
+using System.Collections;
+using System.Collections.Generic;
+
+namespace DCGO.CardEffects.Tokens
+{
+    public class VoléeZerdrücken_EX7_030_token : CEntity_Effect
+    {
+        public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
+        {
+            List<ICardEffect> cardEffects = new List<ICardEffect>();
+
+            #region Blocker
+            if (timing == EffectTiming.None)
+            {
+                cardEffects.Add(CardEffectFactory.BlockerSelfStaticEffect(
+                    isInheritedEffect: false,
+                    card: card,
+                    condition: null));
+            }
+            #endregion
+
+            #region Retaliation
+            if (timing == EffectTiming.OnDestroyedAnyone)
+            {
+                cardEffects.Add(CardEffectFactory.RetaliationSelfEffect(isInheritedEffect: false, card: card, condition: null));
+            }
+            #endregion
+
+            return cardEffects;
+        }
+    }
+}

+ 11 - 0
Assets/CardEffect/EX7/Purple/VoléeZerdrücken_EX7_030_token.cs.meta

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

+ 12 - 0
Assets/Scripts/CardEffectCommons.cs

@@ -219,6 +219,18 @@ public partial class CardEffectCommons
     }
     #endregion
 
+    #region Play 1 [Volée & Zerdrücken] Token
+    public static IEnumerator PlayVoléeZerdrücken(ICardEffect activateClass)
+    {
+        yield return ContinuousController.instance.StartCoroutine(PlayToken(
+            tokenData: ContinuousController.instance.VoléeZerdrückenToken,
+            activateClass: activateClass,
+            isOwnerPermanent: true,
+            isTapped: false
+        ));
+    }
+    #endregion
+
     #region Security effect of "add this card to hand"
     public static IEnumerator AddThisCardToHand(CardSource card1, ICardEffect activateClass)
     {

+ 22 - 0
Assets/Scripts/ContinuousController.cs

@@ -109,6 +109,7 @@ public class ContinuousController : MonoBehaviour
     public CEntity_Base GyuukimonToken { get; private set; }
     public CEntity_Base KoHagurumonToken { get; private set; }
     public CEntity_Base FamiliarToken { get; private set; }
+    public CEntity_Base VoléeZerdrückenToken { get; private set; }
     public CardRestriction BanList { get; private set; } = new CardRestriction(new List<CardLimitCount>(), new List<BannedPair>());
 
     void LoadBanList()
@@ -262,6 +263,27 @@ public class ContinuousController : MonoBehaviour
         };
 
         await FamiliarToken.GetCardSprite();
+
+        VoléeZerdrückenToken = new CEntity_Base()
+        {
+            cardColors = new List<CardColor>() { CardColor.Purple },
+            PlayCost = -1,
+            Level = 4,
+            CardName_JPN = "",
+            CardName_ENG = "Volée & Zerdrücken",
+            Form_JPN = new List<string>(),
+            Form_ENG = new List<string>(),
+            Attribute_JPN = new List<string>(),
+            Attribute_ENG = new List<string>(),
+            Type_JPN = new List<string>(),
+            Type_ENG = new List<string>(),
+            CardSpriteName = "EX7-058-token",
+            cardKind = CardKind.Digimon,
+            DP = 5000,
+            CardEffectClassName = "VoléeZerdrücken_EX7_030_token"
+        };
+
+        await VoléeZerdrückenToken.GetCardSprite();
     }
 
     public static ContinuousController instance = null;