فهرست منبع

1.4.7 build updates

mbunch_kascope 1 سال پیش
والد
کامیت
6b7ce128c4

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

@@ -38,7 +38,7 @@ public class Megadramon_BT15_064 : CEntity_Effect
         {
             ActivateClass activateClass = new ActivateClass();
             activateClass.SetUpICardEffect("De-Digivolve 1 on 1 Digimon", CanUseCondition, card);
-            activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, -1, true, EffectDiscription());
+            activateClass.SetUpActivateClass(CanActivateCondition, ActivateCoroutine, 1, false, EffectDiscription());
             activateClass.SetIsInheritedEffect(true);
             activateClass.SetHashString("AttackESS_BT15_064");
             cardEffects.Add(activateClass);

+ 3 - 1
Assets/CardEffect/BT15/Yellow/Revelation_of_Light_BT15_092.cs

@@ -60,7 +60,7 @@ public class Revelation_of_Light_BT15_092 : CEntity_Effect
 
             string EffectDiscription()
             {
-                return "[Main] Search your security stack. You may play 1 level 4 or lower yellow Digimon card among them wihtout paying the cost. If you have a Tamer with [Kari Kamiya] in it's name, place this card at the top of your security stack.";
+                return "[Main] Search your security stack. You may play 1 level 4 or lower yellow Digimon card among it without paying the cost. Then, shuffle your security stack. If you have a Tamer with [Kari Kamiya] in its name, place this card on top of your security stack.";
             }
 
             bool CanSelectCardCondition(CardSource cardSource)
@@ -160,6 +160,8 @@ public class Revelation_of_Light_BT15_092 : CEntity_Effect
                     }
                 }
 
+                card.Owner.SecurityCards = RandomUtility.ShuffledDeckCards(card.Owner.SecurityCards);
+
                 if (CardEffectCommons.HasMatchConditionOwnersPermanent(card, PermanentCondition))
                 {
                     yield return ContinuousController.instance.StartCoroutine(CardObjectController.AddSecurityCard(card, toTop: true));

+ 33 - 17
Assets/CardEffect/BT16/Black/DoruGreymon_BT16_061.cs

@@ -169,33 +169,49 @@ namespace DCGO.CardEffects.BT16
                     return false;
                 }
 
+                bool DeletionCardEffect(ICardEffect cardEffect)
+                {
+                    return (cardEffect.EffectSourceCard.PermanentOfThisCard() == card.PermanentOfThisCard());
+                }
+
+                bool LoserCondition(Permanent permanent)
+                {
+                    return permanent.IsDigimon && card.PermanentOfThisCard() != permanent;
+                }
+
                 bool CanUseCondition(Hashtable hashtable)
                 {
                     if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
                     {
-                        // Opponent's Digimon
-                        bool WinnerCondition(Permanent permanent) => permanent.cardSources.Contains(card);
-
-                        bool LoserCondition(Permanent permanent) => permanent.IsDigimon;
-
-                        if (CardEffectCommons.CanTriggerWhenDeleteOpponentDigimon(hashtable: hashtable,
-                                winnerCondition: WinnerCondition, loserCondition: LoserCondition))
+                        if (CardEffectCommons.IsByBattle(hashtable))
                         {
-                            return true;
-                        }
+                            bool WinnerCondition(Permanent permanent)
+                            {
+                                if (permanent == null)
+                                    permanent = card.PermanentOfThisCard();
 
-                        // Other Digimon
-                        bool DeletionCardEffect(ICardEffect cardEffect) =>
-                            cardEffect.EffectSourceCard.PermanentOfThisCard() == card.PermanentOfThisCard();
+                                return permanent.cardSources.Contains(card);
+                            }
 
-                        bool DeletedPermanentCondition(Permanent permanent) =>
-                            permanent != card.PermanentOfThisCard() && permanent.IsDigimon;
+                            if (CardEffectCommons.CanTriggerWhenDeleteOpponentDigimon(hashtable, WinnerCondition, LoserCondition))
+                                return true;
+                        }
 
                         if (CardEffectCommons.IsByEffect(hashtable, DeletionCardEffect))
                         {
-                            if (CardEffectCommons.CanTriggerOnPermanentDeleted(hashtable, DeletedPermanentCondition))
-                                return true;
-                        }
+                            // Other Digimon
+                            bool DeletionCardEffect(ICardEffect cardEffect) =>
+                                cardEffect.EffectSourceCard.PermanentOfThisCard() == card.PermanentOfThisCard();
+
+                            bool DeletedPermanentCondition(Permanent permanent) =>
+                                permanent != card.PermanentOfThisCard() && permanent.IsDigimon;
+
+                            if (CardEffectCommons.IsByEffect(hashtable, DeletionCardEffect))
+                            {
+                                if (CardEffectCommons.CanTriggerOnPermanentDeleted(hashtable, DeletedPermanentCondition))
+                                    return true;
+                            }
+                        }                        
                     }
 
                     return false;

+ 1 - 1
Assets/CardEffect/BT16/Blue/ImperialdramonFighterModeAce_BT16_027.cs

@@ -173,7 +173,7 @@ namespace DCGO.CardEffects.BT16
 
                 bool HasSourceCondition(CardSource cardSource)
                 {
-                    return cardSource.CardNames.Contains("Imperialdramon: Dragon Mode") || cardSource.CardNames.Contains("ImperialdramonDragon Mode") || cardSource.CardNames.Contains("Imperialdramon:DragonMode");
+                    return cardSource.EqualsCardName("Imperialdramon: Dragon Mode") || cardSource.EqualsCardName("Imperialdramon Dragon Mode");
                 }
 
                 bool CanSelectPermanentCondition(Permanent permanent)

+ 10 - 2
Assets/CardEffect/BT17/White/ImperialdramonPaladinMode_BT17_077.cs

@@ -113,7 +113,7 @@ namespace DCGO.CardEffects.BT17
                             canEndNotMax: false,
                             selectPermanentCoroutine: SelectedBottomDeck,
                             afterSelectPermanentCoroutine: null,
-                            mode: SelectPermanentEffect.Mode.PutLibraryBottom,
+                            mode: SelectPermanentEffect.Mode.Custom,
                             cardEffect: activateClass);
 
                         selectPermanentEffect.SetUpCustomMessage("Select 1 Digimon to bottom deck.", "The opponent is selecting 1 Digimon to bottom deck.");
@@ -122,10 +122,18 @@ namespace DCGO.CardEffects.BT17
 
                         IEnumerator SelectedBottomDeck(Permanent bottomDeckedPermanent)
                         {
-                            if(bottomDeckedPermanent != null && !bottomDeckedPermanent.TopCard.CanNotBeAffected(activateClass))
+                            yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.DeckBouncePeremanentAndProcessAccordingToResult(
+                            targetPermanents: new List<Permanent>() { bottomDeckedPermanent },
+                            activateClass: activateClass,
+                            successProcess: SuccessProcess(),
+                            failureProcess: null));
+
+                            IEnumerator SuccessProcess()
+                            {
                                 yield return ContinuousController.instance.StartCoroutine(new IUnsuspendPermanents(
                                     new List<Permanent> { card.PermanentOfThisCard() },
                                     activateClass).Unsuspend());
+                            }                                
                         }
                     }
                 }

+ 1 - 1
ProjectSettings/ProjectSettings.asset

@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:80c1f0f17acb56242b68f6d99de8537c47bbcc99d6222c557ff36c703a86ec16
+oid sha256:dd580a8534ae6c1cf5237cf6ba5a4c0a46bac19393c900459954ed68a0ade74a
 size 20166