|
|
@@ -104,8 +104,8 @@ namespace DCGO.CardEffects.ST23
|
|
|
&& CardEffectCommons.CanPlayAsNewPermanent(cardSource, true, activateClass, fixedCost: cardSource.GetCostItself - 3)));
|
|
|
}
|
|
|
|
|
|
- CardSource selectCard = null;
|
|
|
- List<CardSource> selectedCards = null;
|
|
|
+ CardSource selectedCard = null;
|
|
|
+ List<CardSource> selectedCards = new List<CardSource>();
|
|
|
|
|
|
SelectHandEffect selectHandEffect = GManager.instance.GetComponent<SelectHandEffect>();
|
|
|
|
|
|
@@ -126,18 +126,16 @@ namespace DCGO.CardEffects.ST23
|
|
|
selectHandEffect.SetUpCustomMessage("Select 1 card to play/use.", "The opponent is selecting 1 card to play/use.");
|
|
|
selectHandEffect.SetUpCustomMessage_ShowCard("Played Card");
|
|
|
|
|
|
- yield return StartCoroutine(selectHandEffect.Activate());
|
|
|
-
|
|
|
IEnumerator SelectCardCoroutine(CardSource cardSource)
|
|
|
{
|
|
|
- selectCard = cardSource;
|
|
|
selectedCards.Add(cardSource);
|
|
|
+ selectedCard = cardSource;
|
|
|
yield return null;
|
|
|
}
|
|
|
|
|
|
yield return ContinuousController.instance.StartCoroutine(selectHandEffect.Activate());
|
|
|
|
|
|
- if (selectCard != null)
|
|
|
+ if (selectedCards != null)
|
|
|
{
|
|
|
#region reduce use cost
|
|
|
ChangeCostClass changeCostClass = new ChangeCostClass();
|
|
|
@@ -211,7 +209,7 @@ namespace DCGO.CardEffects.ST23
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
- if (selectCard.IsOption)
|
|
|
+ if (selectedCard.IsOption)
|
|
|
{
|
|
|
yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.PlayOptionCards(
|
|
|
cardSources: selectedCards,
|
|
|
@@ -222,7 +220,7 @@ namespace DCGO.CardEffects.ST23
|
|
|
else
|
|
|
{
|
|
|
yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.PlayPermanentCards(
|
|
|
- new List<CardSource>() { selectCard },
|
|
|
+ cardSources: selectedCards,
|
|
|
activateClass: activateClass,
|
|
|
payCost: true,
|
|
|
isTapped: false,
|