Jelajahi Sumber

Fix ST23 and ST24 tamers AT/YT resolving even when suspended.

x89rt2 3 bulan lalu
induk
melakukan
d8f5ca14c1

+ 2 - 2
Assets/Scripts/CardEffect/ST23/Black/ST23_14.cs

@@ -58,7 +58,7 @@ namespace DCGO.CardEffects.ST23
             }
             #endregion       
 
-            #region Your Turns
+            #region Your Turn
             if (timing == EffectTiming.OnDigivolutionCardDiscarded)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -81,7 +81,7 @@ namespace DCGO.CardEffects.ST23
                 bool CanActivateCondition(Hashtable hashtable)
                 {
                     return CardEffectCommons.IsExistOnBattleArea(card)
-                        && card.PermanentOfThisCard().CanSuspend;
+                        && CardEffectCommons.CanActivateSuspendCostEffect(card);
                 }
 
                 bool CanSelectPermanentCondition(Permanent permanent)

+ 2 - 2
Assets/Scripts/CardEffect/ST23/Green/ST23_13.cs

@@ -59,7 +59,7 @@ namespace DCGO.CardEffects.ST23
             }
             #endregion       
 
-            #region Your Turns
+            #region Your Turn
             if (timing == EffectTiming.OnDigivolutionCardDiscarded)
             {
                 ActivateClass activateClass = new ActivateClass();
@@ -82,7 +82,7 @@ namespace DCGO.CardEffects.ST23
                 bool CanActivateCondition(Hashtable hashtable)
                 {
                     return CardEffectCommons.IsExistOnBattleArea(card)
-                        && card.PermanentOfThisCard().CanSuspend;
+                        && CardEffectCommons.CanActivateSuspendCostEffect(card);
                 }
 
                 bool CanSelectPermanentCondition(Permanent permanent)

+ 2 - 1
Assets/Scripts/CardEffect/ST24/Green/ST24_14.cs

@@ -101,7 +101,8 @@ namespace DCGO.CardEffects.ST24
 
                 bool CanActivateCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBattleArea(card);
+                    return CardEffectCommons.IsExistOnBattleArea(card)
+                        && CardEffectCommons.CanActivateSuspendCostEffect(card);
                 }
 
                 bool CanSelectPermanentCondition(Permanent permanent)

+ 2 - 1
Assets/Scripts/CardEffect/ST24/Yellow/ST24_13.cs

@@ -101,7 +101,8 @@ namespace DCGO.CardEffects.ST24
 
                 bool CanActivateCondition(Hashtable hashtable)
                 {
-                    return CardEffectCommons.IsExistOnBattleArea(card);
+                    return CardEffectCommons.IsExistOnBattleArea(card)
+                        && CardEffectCommons.CanActivateSuspendCostEffect(card);
                 }
 
                 bool CanSelectPermanentCondition(Permanent permanent)