|
@@ -109,7 +109,7 @@ namespace DCGO.CardEffects.BT24
|
|
|
canEndSelectCondition: null,
|
|
canEndSelectCondition: null,
|
|
|
canNoSelect: () => true,
|
|
canNoSelect: () => true,
|
|
|
selectCardCoroutine: SelectCardCoroutine,
|
|
selectCardCoroutine: SelectCardCoroutine,
|
|
|
- afterSelectCardCoroutine: AfterSelectCardCoroutine,
|
|
|
|
|
|
|
+ afterSelectCardCoroutine: null,
|
|
|
message: "Select 1 card to trash.\n (cards to the left are at the top and cards to the right are at the bottom)",
|
|
message: "Select 1 card to trash.\n (cards to the left are at the top and cards to the right are at the bottom)",
|
|
|
maxCount: maxCount,
|
|
maxCount: maxCount,
|
|
|
canEndNotMax: false,
|
|
canEndNotMax: false,
|
|
@@ -132,35 +132,14 @@ namespace DCGO.CardEffects.BT24
|
|
|
selectedCard = cardSource;
|
|
selectedCard = cardSource;
|
|
|
yield return null;
|
|
yield return null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- IEnumerator AfterSelectCardCoroutine(List<CardSource> cardSources)
|
|
|
|
|
- {
|
|
|
|
|
- if (cardSources.Count >= 1)
|
|
|
|
|
- {
|
|
|
|
|
- yield return ContinuousController.instance.StartCoroutine(new IReduceSecurity(
|
|
|
|
|
- player: card.Owner.Enemy,
|
|
|
|
|
- refSkillInfos: ref ContinuousController.instance.nullSkillInfos,
|
|
|
|
|
- activateClass).ReduceSecurity());
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
if (selectedCard != null)
|
|
if (selectedCard != null)
|
|
|
{
|
|
{
|
|
|
- #region
|
|
|
|
|
- selectedCard.Owner.securityObject.securityBreakGlass.ShowBlueMatarial();
|
|
|
|
|
-
|
|
|
|
|
- yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().BreakSecurityEffect(selectedCard.Owner));
|
|
|
|
|
-
|
|
|
|
|
- yield return new WaitForSeconds(0.1f);
|
|
|
|
|
-
|
|
|
|
|
- yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().EnterSecurityCardEffect(selectedCard));
|
|
|
|
|
-
|
|
|
|
|
- yield return new WaitForSeconds(0.5f);
|
|
|
|
|
-
|
|
|
|
|
- yield return ContinuousController.instance.StartCoroutine(GManager.instance.GetComponent<Effects>().DestroySecurityEffect(selectedCard));
|
|
|
|
|
- #endregion
|
|
|
|
|
-
|
|
|
|
|
- yield return ContinuousController.instance.StartCoroutine(CardObjectController.AddTrashCard(selectedCard));
|
|
|
|
|
|
|
+ yield return ContinuousController.instance.StartCoroutine(new IDestroySecurity(
|
|
|
|
|
+ player: card.Owner.Enemy,
|
|
|
|
|
+ card: selectedCard,
|
|
|
|
|
+ cardEffect: activateClass
|
|
|
|
|
+ ).DestroySecurity());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
#endregion
|
|
#endregion
|