Browse Source

BT15 Black Cards bug fixes

Albert Vasconcellos 2 years ago
parent
commit
f18d721c88

+ 0 - 7
Assets/AddOn/GlitchFx-master/GlitchFx.unitypackage.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: d80f995af690a474e841364c1e88ee1b
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 1 - 1
Assets/CSV/BT15.csv

@@ -4,7 +4,7 @@ BT15-001_P1,Yokomon_BT15_001,3115,,,,,,
 BT15-002,Tsunomon_BT15_002,3116,,,,,,
 BT15-002_P1,Tsunomon_BT15_002,3117,,,,,,
 BT15-003,Nyaromon_BT15_003,3118,,,,,,
-BT15-003_P1,Nyaromon_BT15_004,3119,,,,,,
+BT15-003_P1,Nyaromon_BT15_003,3119,,,,,,
 BT15-004,Motimon_BT15_004,3120,,,,,,
 BT15-004_P1,Motimon_BT15_004,3121,,,,,,
 BT15-005,Kyokyomon_BT15_005,3122,,,,,,

+ 1 - 1
Assets/CardEffect/BT15/Black/Gigadramon_BT15_062.cs

@@ -84,7 +84,7 @@ public class Gigadramon_BT15_062 : CEntity_Effect
 
             string EffectDiscription()
             {
-                return "By deleting 1 of your Digimon, you may play 1 Digimon card with the [Dark Masters] trait from you hand to and empty space in your breeding area without paying the cost.";
+                return "[End of Your Turn] By deleting 1 of your Digimon, you may play 1 Digimon card with the [Dark Masters] trait from you hand to and empty space in your breeding area without paying the cost.";
             }
 
             bool CanSelectPermanentCondition(Permanent permanent)

+ 1 - 1
Assets/CardEffect/BT15/Black/Girdromon_BT15_061.cs → Assets/CardEffect/BT15/Black/Guardromon_BT15_061.cs

@@ -6,7 +6,7 @@ using Photon;
 using System;
 using Photon.Pun;
 
-public class Girdromon_BT15_061 : CEntity_Effect
+public class Guardromon_BT15_061 : CEntity_Effect
 {
   public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
   {

+ 0 - 0
Assets/CardEffect/BT15/Black/Girdromon_BT15_061.cs.meta → Assets/CardEffect/BT15/Black/Guardromon_BT15_061.cs.meta


+ 3 - 3
Assets/CardEffect/BT15/Black/Mugendramon_BT15_066.cs → Assets/CardEffect/BT15/Black/Machinedramon_BT15_066.cs

@@ -6,7 +6,7 @@ using Photon;
 using System;
 using Photon.Pun;
 
-public class Mugendramon_BT15_066 : CEntity_Effect
+public class Machinedramon_BT15_066 : CEntity_Effect
 {
     public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
     {
@@ -188,12 +188,12 @@ public class Mugendramon_BT15_066 : CEntity_Effect
 
             string EffectDiscription()
             {
-                return "[End of Your Turn] Trash the top card of your security stack.";
+                return "[End of Opponent's Turn] Delete this Digimon. Then you may play 1 Digimon card with the [Dark Masters] trait, other than [Machinedramon] from your hand without paying the cost.";
             }
 
             bool CanSelectCardCondition(CardSource cardSource)
             {
-                if (!cardSource.CardNames.Contains("Mechadramon"))
+                if (!cardSource.CardNames.Contains("Machinedramon"))
                 {
                     if (cardSource.IsDigimon)
                     {

+ 0 - 0
Assets/CardEffect/BT15/Black/Mugendramon_BT15_066.cs.meta → Assets/CardEffect/BT15/Black/Machinedramon_BT15_066.cs.meta


+ 67 - 0
Assets/CardEffect/BT15/Black/Omekamon_BT15_060.cs

@@ -154,6 +154,73 @@ public class Omekamon_BT15_060 : CEntity_Effect
             }
         }
 
+        if (timing == EffectTiming.OnAllyAttack)
+        {
+            ActivateClass activateClass = new ActivateClass();
+            activateClass.SetUpICardEffect("De-Digivolve 1 on 1 Digimon", CanUseCondition, card);
+            activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, false, EffectDiscription());
+            activateClass.SetIsInheritedEffect(true);
+            cardEffects.Add(activateClass);
+
+            string EffectDiscription()
+            {
+                return "[When Attacking][De-Digivolve] 1�„n 1 of your opponent's Digimon (Trash up to 1 card from the top of one of your opponent's Digimon. If it has no digivolution cards, or becomes a level 3 Digimon, you can't trash any more cards).";
+            }
+
+            bool CanSelectPermanentCondition(Permanent permanent)
+            {
+                return CardEffectCommons.IsPermanentExistsOnOpponentBattleAreaDigimon(permanent, card);
+            }
+
+            bool CanUseCondition(Hashtable hashtable)
+            {
+                return CardEffectCommons.CanTriggerOnAttack(hashtable, card);
+            }
+
+            bool CanActivateCondition(Hashtable hashtable)
+            {
+                if (CardEffectCommons.IsExistOnBattleArea(card))
+                {
+                    return true;
+                }
+
+                return false;
+            }
+
+            IEnumerator ActivateCoroutine(Hashtable _hashtable)
+            {
+                if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
+                {
+                    int maxCount = Math.Min(1, CardEffectCommons.MatchConditionPermanentCount(CanSelectPermanentCondition));
+
+                    SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
+
+                    selectPermanentEffect.SetUp(
+                        selectPlayer: card.Owner,
+                        canTargetCondition: CanSelectPermanentCondition,
+                        canTargetCondition_ByPreSelecetedList: null,
+                        canEndSelectCondition: null,
+                        maxCount: maxCount,
+                        canNoSelect: false,
+                        canEndNotMax: false,
+                        selectPermanentCoroutine: SelectPermanentCoroutine,
+                        afterSelectPermanentCoroutine: null,
+                        mode: SelectPermanentEffect.Mode.Custom,
+                        cardEffect: activateClass);
+
+                    selectPermanentEffect.SetUpCustomMessage("Select 1 Digimon to De-Digivolve.", "The opponent is selecting 1 Digimon to De-Digivolve.");
+                    yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
+
+                    IEnumerator SelectPermanentCoroutine(Permanent permanent)
+                    {
+                        Permanent selectedPermanent = permanent;
+
+                        yield return ContinuousController.instance.StartCoroutine(new IDegeneration(selectedPermanent, 1, activateClass).Degeneration());
+                    }
+                }
+            }
+        }
+
         if (timing == EffectTiming.None)
         {
             AddDigiXrosConditionClass addDigiXrosConditionClass = new AddDigiXrosConditionClass();

+ 21 - 6
Assets/CardEffect/BT15/Black/WaruMonzaemon_BT15_065.cs

@@ -35,11 +35,6 @@ public class WaruMonzaemon_BT15_065 : CEntity_Effect
                 return "[On Play] By placing 1 card with [Numemon] in it's name from your trash as this Digimon's bottom digivolution card, all of your opponent's Digimon with a play cost of 5 or less can't attack players until the end of your opponent's turn.";
             }
 
-            bool CanSelectPermanentCondition(Permanent permanent)
-            {
-                return CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card);
-            }
-
             bool CanSelectCardCondition(CardSource cardSource)
             {
                 return cardSource.ContainsCardName("Numemon");
@@ -391,9 +386,29 @@ public class WaruMonzaemon_BT15_065 : CEntity_Effect
                 }
             }
 
-
+            
         }
 
+        if (timing == EffectTiming.None)
+        {
+            bool Condition()
+            {
+                if (CardEffectCommons.IsExistOnBattleArea(card))
+                {
+                    if (CardEffectCommons.IsOwnerTurn(card))
+                    {
+                        if (CardEffectCommons.HasMatchConditionOwnersPermanent(card, (permanent) => permanent.IsDigimon && permanent.TopCard.ContainsCardName("Monzaemon") || permanent.TopCard.ContainsCardName("Numemon")))
+                        {
+                            return true;
+                        }
+                    }
+                }
+
+                return false;
+            }
+
+            cardEffects.Add(CardEffectFactory.ChangeSelfSAttackStaticEffect(changeValue: 1, isInheritedEffect: true, card: card, condition: Condition));
+        }
 
 
         return cardEffects;