Browse Source

Update BT25_038.cs

possibly fix soft lock
x89rt2 3 tháng trước cách đây
mục cha
commit
3d74b561f1
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 4 5
      Assets/Scripts/CardEffect/BT25/Yellow/BT25_038.cs

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

@@ -1,6 +1,7 @@
 using System;
 using System.Collections;
 using System.Collections.Generic;
+using System.Linq;
 
 // Shakkoumon
 namespace DCGO.CardEffects.BT25
@@ -205,8 +206,8 @@ namespace DCGO.CardEffects.BT25
                                     maxCount: 1,
                                     canNoSelect: true,
                                     canEndNotMax: false,
-                                    selectPermanentCoroutine: SelectPermanentCoroutine,
-                                    afterSelectPermanentCoroutine: null,
+                                    selectPermanentCoroutine: null,
+                                    afterSelectPermanentCoroutine: afterSelectPermanentCoroutine,
                                     mode: SelectPermanentEffect.Mode.Custom,
                                     cardEffect: activateClass);
 
@@ -214,10 +215,8 @@ namespace DCGO.CardEffects.BT25
 
                                 yield return ContinuousController.instance.StartCoroutine(selectPermanentEffect.Activate());
 
-                                IEnumerator SelectPermanentCoroutine(Permanent permanent)
+                                IEnumerator afterSelectPermanentCoroutine(List<Permanent> selectedPermanent)
                                 {
-                                    Permanent selectedPermanent = permanent;
-
                                     if (selectedPermanent != null)
                                     {
                                         SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();