Kaynağa Gözat

bug fixes

King Drasil, Dorugoramon, Taomon, Ryugumon, Ryo Akiyama, Pinamon, Gankoomon, Singularity of Chaos
Joe Delia 1 yıl önce
ebeveyn
işleme
119ca2f391

+ 2 - 2
Assets/CardEffect/BT13/White/BT13_007.cs

@@ -42,7 +42,7 @@ namespace DCGO.CardEffects.BT13
                 isInheritedEffect: false,
                 card: card,
                 condition: Condition,
-                effectName: "Your Digimons can't digivolve")
+                effectName: "Your Digimon can't digivolve")
                 );
             }
 
@@ -480,7 +480,7 @@ namespace DCGO.CardEffects.BT13
 
                 bool PermanentCondition(Permanent permanent)
                 {
-                    if (CardEffectCommons.IsPermanentExistsOnOwnerBattleArea(permanent, card))
+                    if (CardEffectCommons.IsPermanentExistsOnBattleArea(permanent))
                     {
                         if (permanent.TopCard.IsOption)
                         {

+ 6 - 6
Assets/CardEffect/BT16/Black/BT16_064.cs

@@ -88,7 +88,12 @@ namespace DCGO.CardEffects.BT16
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    if (CardEffectCommons.CanTriggerWhenDigivolving(hashtable, card))
+                    return CardEffectCommons.CanTriggerWhenDigivolving(hashtable, card);
+                }
+
+                bool CanActivateCondition(Hashtable hashtable)
+                {
+                    if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
                     {
                         if (card.PermanentOfThisCard().DigivolutionCards.Count(HasTamerWithTrait) >= 1)
                         {
@@ -99,11 +104,6 @@ namespace DCGO.CardEffects.BT16
                     return false;
                 }
 
-                bool CanActivateCondition(Hashtable hashtable)
-                {
-                    return CardEffectCommons.IsExistOnBattleAreaDigimon(card);
-                }
-
                 IEnumerator ActivateCoroutine(Hashtable hashtable)
                 {
                     if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))

+ 4 - 1
Assets/CardEffect/BT17/Yellow/BT17_035.cs

@@ -248,7 +248,10 @@ namespace DCGO.CardEffects.BT17
                     {
                         if (card.Owner.HandCards.Count >= 1)
                         {
-                            return true;
+                            if (card.PermanentOfThisCard().TopCard.ContainsCardName("Sakuyamon"))
+                            {
+                                return true;
+                            }
                         }
                     }
 

+ 3 - 3
Assets/CardEffect/BT19/Black/BT19_086.cs

@@ -61,9 +61,9 @@ namespace DCGO.CardEffects.BT19
                         mode: SelectHandEffect.Mode.Custom,
                         cardEffect: activateClass);
 
-                    selectHandEffect.SetUpCustomMessage("Select 1 card to place on bottom of digivolution cards.",
-                        "The opponent is selecting 1 card to place on bottom of digivolution cards.");
-                    selectHandEffect.SetUpCustomMessage_ShowCard("Digivolution Card");
+                    selectHandEffect.SetUpCustomMessage("Select 1 card to place in the battle area.",
+                        "The opponent is selecting 1 card to place in the battle area.");
+                    selectHandEffect.SetUpCustomMessage_ShowCard("Battle Area");
 
                     IEnumerator SelectCardCoroutine(CardSource cardSource)
                     {

+ 2 - 1
Assets/CardEffect/BT19/Blue/BT19_027.cs

@@ -177,7 +177,8 @@ namespace DCGO.CardEffects.BT19
 
                     if (selectedPermanent != null)
                     {
-                        int selectedLevel = selectedPermanent.Level;
+                        // If selected digimon has no level, set reference level to 0.
+                        int selectedLevel = selectedPermanent.TopCard.HasLevel ? selectedPermanent.Level : 0;
 
                         yield return ContinuousController.instance.StartCoroutine(
                             new DeckBottomBounceClass(new List<Permanent> { selectedPermanent }, hashtable).DeckBounce());

+ 1 - 1
Assets/CardEffect/BT20/Black/BT20_057.cs

@@ -14,7 +14,7 @@ namespace DCGO.CardEffects.BT20
             #region Reduce Play Cost
             bool HasProperTraitInPlay(Permanent permanent)
             {
-                if (CardEffectCommons.IsPermanentExistsOnBattleArea(permanent))
+                if (CardEffectCommons.IsPermanentExistsOnOwnerBattleArea(permanent, card))
                 {
                     if (permanent.IsDigimon)
                     {

+ 7 - 2
Assets/CardEffect/BT20/Green/BT20_004.cs

@@ -38,8 +38,13 @@ namespace DCGO.CardEffects.BT20
 
                 bool CanUseCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBattleAreaDigimon(card) &&
-                           CardEffectCommons.CanTriggerOnPermanentPlay(hashtable, IsYourAccelDigimon);
+                    if (CardEffectCommons.IsOwnerTurn(card))
+                    {
+                        return CardEffectCommons.IsExistOnBattleAreaDigimon(card) &&
+                               CardEffectCommons.CanTriggerOnPermanentPlay(hashtable, IsYourAccelDigimon);
+                    }
+
+                    return false;
                 }
 
                 bool CanActivateCondition(Hashtable hashtable)

+ 1 - 9
Assets/CardEffect/BT20/White/BT20_099.cs

@@ -64,15 +64,7 @@ namespace DCGO.CardEffects.BT20
 
                 bool CanSelectPermanentCondition(Permanent permanent)
                 {
-                    if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
-                    {
-                        if (permanent.DigivolutionCards.Count((cardSource) => cardSource.CardNames.Contains("X Antibody") || cardSource.CardNames.Contains("XAntibody")) == 0)
-                        {
-                            return true;
-                        }
-                    }
-
-                    return false;
+                    return CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card);
                 }
 
                 bool CanUseCondition(Hashtable hashtable)