Просмотр исходного кода

Update ST23_04.cs

Fix soft locking if no select tamer on OP.WD.
x89rt2 3 месяцев назад
Родитель
Сommit
792a449f82
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      Assets/Scripts/CardEffect/ST23/Yellow/ST23_04.cs

+ 5 - 2
Assets/Scripts/CardEffect/ST23/Yellow/ST23_04.cs

@@ -115,9 +115,12 @@ namespace DCGO.CardEffects.ST23
 
                     IEnumerator AfterSelectPermanentCoroutine(List<Permanent> permanents)
                     {
-                        yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.TrashDigivolutionCardsFromTopOrBottom(targetPermanent: permanents[0], trashCount: 1, isFromTop: false, activateClass: activateClass, CanSelectTrashSourceCardCondition));
+                        if (permanents != null)
+                        {
+                            yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.TrashDigivolutionCardsFromTopOrBottom(targetPermanent: permanents[0], trashCount: 1, isFromTop: false, activateClass: activateClass, CanSelectTrashSourceCardCondition));
 
-                        trash = true;
+                            trash = true;
+                        }
                     }
 
                     if (trash)