Преглед изворни кода

fixed text errors and zero max select errors

dp101428 пре 1 година
родитељ
комит
2105853be6

+ 1 - 1
Assets/CardEffect/ST20/Black/ST20_11.cs

@@ -199,7 +199,7 @@ namespace DCGO.CardEffects.ST20
                 IEnumerator ActivateCoroutine(Hashtable hashtable)
                 {
                     List<Permanent> selectedPermanents = new List<Permanent>();
-                    if (CardEffectCommons.HasMatchConditionPermanent(CanSelectProtectCondition))
+                    if (CardEffectCommons.HasMatchConditionPermanent(CanSelectProtectCondition) && TamerTwoColourCount() > 0)
                     {
                         //Probably could get away with just 1 min and don't check against min 1, but I'm not going to change what I don't understand for no reason
                         int maxCount = Math.Min(Math.Min(1, CardEffectCommons.MatchConditionPermanentCount(CanSelectProtectCondition)), TamerTwoColourCount());

+ 3 - 3
Assets/CardEffect/ST20/Green/ST20_09.cs

@@ -73,7 +73,7 @@ namespace DCGO.CardEffects.ST20
                     yield return ContinuousController.instance.StartCoroutine(
                         new IUnsuspendPermanents(new List<Permanent>() { card.PermanentOfThisCard() }, activateClass).Unsuspend());
 
-                    if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
+                    if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition) && TamerTwoColourCount() > 0)
                     {
                         SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
 
@@ -123,7 +123,7 @@ namespace DCGO.CardEffects.ST20
                     yield return ContinuousController.instance.StartCoroutine(
                         new IUnsuspendPermanents(new List<Permanent>() { card.PermanentOfThisCard() }, activateClass).Unsuspend());
 
-                    if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition))
+                    if (CardEffectCommons.HasMatchConditionPermanent(CanSelectPermanentCondition) && TamerTwoColourCount() > 0)
                     {
                         SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
 
@@ -161,7 +161,7 @@ namespace DCGO.CardEffects.ST20
 
                 string EffectDiscription()
                 {
-                    return "[Your Turn][Once Per Turn] When your other Digimon are played or digivolve, if any of them have the [ADVENTURE] trait, 1 of your Digimon gains<Alliance> for the turn. Then, 1 of your Digimon may attack.";
+                    return "[Your Turn][Once Per Turn] When your other Digimon are played or digivolve, if any of them have the [ADVENTURE] trait, 1 of your Digimon gains <Alliance> for the turn. Then, 1 of your Digimon may attack.";
                 }
 
                 bool MyDigimonPlayedDigid(Permanent permanent)

+ 1 - 1
Assets/CardEffect/ST20/Red/ST20_04.cs

@@ -182,7 +182,7 @@ namespace DCGO.CardEffects.ST20
 
                 string EffectDiscription()
                 {
-                    return "[Your Turn][Once Per Turn] When your other Digimon are played or digivolve, if any of them have the [ADVENTURE] trait, 1 of your Digimon gains<Alliance> for the turn. Then, 1 of your Digimon may attack.";
+                    return "[Your Turn][Once Per Turn] When your other Digimon are played or digivolve, if any of them have the [ADVENTURE] trait, 1 of your Digimon gains <Alliance> for the turn. Then, 1 of your Digimon may attack.";
                 }
 
                 bool MyDigimonPlayedDigid(Permanent permanent)

+ 1 - 1
Assets/CardEffect/ST20/Yellow/ST20_06.cs

@@ -244,7 +244,7 @@ namespace DCGO.CardEffects.ST20
 
                 string EffectDiscription()
                 {
-                    return "[Your Turn][Once Per Turn] When your other Digimon are played or digivolve, if any of them have the [ADVENTURE] trait, 1 of your Digimon gains<Alliance> for the turn. Then, 1 of your Digimon may attack.";
+                    return "[Your Turn][Once Per Turn] When your other Digimon are played or digivolve, if any of them have the [ADVENTURE] trait, 1 of your Digimon gains <Alliance> for the turn. Then, 1 of your Digimon may attack.";
                 }
 
                 bool MyDigimonPlayedDigid(Permanent permanent)