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

Update BT25_038.cs

Fix not waiting for selection
x89rt2 3 месяцев назад
Родитель
Сommit
587774185a
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      Assets/Scripts/CardEffect/BT25/Yellow/BT25_038.cs

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

@@ -162,6 +162,7 @@ namespace DCGO.CardEffects.BT25
                         }
 
                         yield return ContinuousController.instance.StartCoroutine(GManager.instance.userSelectionManager.WaitForEndSelect());
+
                         bool fromHand = GManager.instance.userSelectionManager.SelectedIntValue == 1;
                         bool dontPlace = GManager.instance.userSelectionManager.SelectedIntValue == 3;
 
@@ -262,7 +263,10 @@ namespace DCGO.CardEffects.BT25
 
                                 string selectPlayerMessage1 = "Where will you place card?";
                                 string notSelectPlayerMessage1 = "The opponent is choosing where to place card.";
+
                                 GManager.instance.userSelectionManager.SetIntSelection(selectionElements: selectionElements1, selectPlayer: card.Owner, selectPlayerMessage: selectPlayerMessage1, notSelectPlayerMessage: notSelectPlayerMessage1);
+
+                                yield return ContinuousController.instance.StartCoroutine(GManager.instance.userSelectionManager.WaitForEndSelect());
                             }
 
                             bool toTop = GManager.instance.userSelectionManager.SelectedIntValue == 1;