Эх сурвалжийг харах

added gomamon and fixed white option

dp101428 1 жил өмнө
parent
commit
cca63c5fa4

+ 72 - 0
Assets/CardEffect/ST21/Blue/ST21_02.cs

@@ -0,0 +1,72 @@
+using System.Collections;
+using System.Collections.Generic;
+
+//ST21 Gomamon
+namespace DCGO.CardEffects.ST21
+{
+    public class ST21_02 : CEntity_Effect
+    {
+        public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
+        {
+            List<ICardEffect> cardEffects = new List<ICardEffect>();
+
+            #region Alternative Digivolution
+            if (timing == EffectTiming.None)
+            {
+                bool PermanentCondition(Permanent permanent)
+                {
+                    return permanent.Level == 2 && permanent.TopCard.EqualsTraits("ADVENTURE");
+                }
+                cardEffects.Add(CardEffectFactory.AddSelfDigivolutionRequirementStaticEffect(PermanentCondition, 0, false, card, null));
+            }
+            #endregion
+
+            #region All turns memory block
+            if (timing == EffectTiming.None)
+            {
+                CannotAddMemoryClass cannotAddMemoryClass = new CannotAddMemoryClass();
+                cannotAddMemoryClass.SetUpICardEffect("Opponent can't gain Memory", CanUseCondition, card);
+                cannotAddMemoryClass.SetUpCannotAddMemoryClass(PlayerCondition: PlayerCondition, CardEffectCondition: CardEffectCondition);
+                cardEffects.Add(cannotAddMemoryClass);
+
+                bool CanUseCondition(Hashtable hashtable)
+                {
+                    if (CardEffectCommons.IsExistOnBattleArea(card))
+                    {
+                        return true;
+                    }
+
+                    return false;
+                }
+
+                bool PlayerCondition(Player player)
+                {
+                    if (player == card.Owner.Enemy)
+                    {
+                        return true;
+                    }
+
+                    return false;
+                }
+
+                bool CardEffectCondition(ICardEffect cardEffect)
+                {
+                    if (cardEffect != null)
+                    {
+                        if (cardEffect.EffectSourceCard != null)
+                        {
+                            if (!cardEffect.IsTamerEffect)
+                            {
+                                return true;
+                            }
+                        }
+                    }
+
+                    return false;
+                }
+            }
+            #endregion
+            return cardEffects;
+        }
+    }
+}

+ 11 - 0
Assets/CardEffect/ST21/Blue/ST21_02.cs.meta

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

+ 1 - 1
Assets/CardEffect/ST21/White/ST21_15.cs

@@ -136,7 +136,7 @@ namespace DCGO.CardEffects.ST21
 
                 IEnumerator ActivateCoroutine(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectCardCondition))
+                    if (CardEffectCommons.HasMatchConditionOwnersCardInTrash(card, CanSelectCardCondition))
                     {
                         List<CardSource> selectedCards = new List<CardSource>();