x89rt2 3 месяцев назад
Родитель
Сommit
4f4d510b61
1 измененных файлов с 4 добавлено и 13 удалено
  1. 4 13
      Assets/Scripts/CardEffect/BT25/Yellow/BT25_038.cs

+ 4 - 13
Assets/Scripts/CardEffect/BT25/Yellow/BT25_038.cs

@@ -138,8 +138,8 @@ namespace DCGO.CardEffects.BT25
             {
                 if (card.Owner.CanAddSecurity(activateClass))
                 {
-                bool canSelectHand = CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectCardCondition);
-                bool canSelectSource = CardEffectCommons.HasMatchConditionPermanent(CanSelectPlacePermanentCondition);
+                    bool canSelectHand = CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectCardCondition);
+                    bool canSelectSource = CardEffectCommons.HasMatchConditionPermanent(CanSelectPlacePermanentCondition);
 
                     if (canSelectHand || canSelectSource)
                     {
@@ -308,7 +308,7 @@ namespace DCGO.CardEffects.BT25
                 {
                     return "[All Turns] [Once Per Turn] When your security stack is added to, <De-Digivolve 1> 1 of your opponent's Digimon.";
                 }
-                
+
                 bool CanUseCondition(Hashtable hashtable)
                 {
                     return CardEffectCommons.IsExistOnBattleAreaDigimon(card)
@@ -372,8 +372,6 @@ namespace DCGO.CardEffects.BT25
                 {
                     if (CardEffectCommons.HasMatchConditionPermanent(CanSelectOpponentPermanentCondition))
                     {
-                        Permanent selectedPermanent = null;
-
                         SelectPermanentEffect selectPermanentEffect = GManager.instance.GetComponent<SelectPermanentEffect>();
 
                         selectPermanentEffect.SetUp(
@@ -395,16 +393,9 @@ namespace DCGO.CardEffects.BT25
                         yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
 
                         IEnumerator SelectPermanentCoroutine(Permanent permanent)
-                        {
-                            selectedPermanent = permanent;
-
-                            yield return null;
-                        }
-
-                        if (selectedPermanent != null)
                         {
                             yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.ChangeDigimonDP(
-                                targetPermanent: selectedPermanent,
+                                targetPermanent: permanent,
                                 changeValue: -4000,
                                 effectDuration: EffectDuration.UntilEachTurnEnd,
                                 activateClass: activateClass));