Quellcode durchsuchen

Update BT25_038.cs

Fixed soft lock on selecting no
x89rt2 vor 3 Monaten
Ursprung
Commit
92ca561957
1 geänderte Dateien mit 10 neuen und 10 gelöschten Zeilen
  1. 10 10
      Assets/Scripts/CardEffect/BT25/Yellow/BT25_038.cs

+ 10 - 10
Assets/Scripts/CardEffect/BT25/Yellow/BT25_038.cs

@@ -148,8 +148,8 @@ namespace DCGO.CardEffects.BT25
                             List<SelectionElement<int>> selectionElements1 = new List<SelectionElement<int>>()
                             {
                                 new (message: $"From hand", value : 1, spriteIndex: 0),
-                                new (message: $"From sources", value : 2, spriteIndex: 1),
-                                new (message: $"Don't place", value: 3, spriteIndex: 2)
+                                new (message: $"From sources", value : 2, spriteIndex: 0),
+                                new (message: $"Don't place", value: 3, spriteIndex: 1)
                             };
 
                             string selectPlayerMessage1 = "From which area will you place a card?";
@@ -249,7 +249,7 @@ namespace DCGO.CardEffects.BT25
                             {
                                 selectedCard = cardSource;
 
-                                yield return null;
+                                return null;
                             }
 
                             if (selectedCard != null)
@@ -267,16 +267,16 @@ namespace DCGO.CardEffects.BT25
                                 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;
-                            bool dontPlace1 = GManager.instance.userSelectionManager.SelectedIntValue == 3;
+                                bool toTop = GManager.instance.userSelectionManager.SelectedIntValue == 1;
+                                bool dontPlace1 = GManager.instance.userSelectionManager.SelectedIntValue == 3;
 
-                            if (!dontPlace1)
-                            {
-                                yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().RemoveDigivolveRootEffect(selectedCard, selectedCard.PermanentOfThisCard()));
+                                if (!dontPlace1)
+                                {
+                                    yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().RemoveDigivolveRootEffect(selectedCard, selectedCard.PermanentOfThisCard()));
 
-                                yield return ContinuousController.instance.StartCoroutine(CardObjectController.AddSecurityCard(selectedCard, toTop: toTop));
+                                    yield return ContinuousController.instance.StartCoroutine(CardObjectController.AddSecurityCard(selectedCard, toTop: toTop));
+                                }
                             }
                         }
                     }