|
@@ -250,37 +250,37 @@ namespace DCGO.CardEffects.EX7
|
|
|
|
|
|
|
|
bool CanSelectCardToPlayFromHand(CardSource cardSource)
|
|
bool CanSelectCardToPlayFromHand(CardSource cardSource)
|
|
|
{
|
|
{
|
|
|
- return CardEffectCommons.CanPlayAsNewPermanent(cardSource: cardSource, payCost: false, cardEffect: activateClass) && cardSource.IsDigimon && (cardSource.ContainsTraits("Machine Drago") || cardSource.ContainsTraits("Sky Dragon"));
|
|
|
|
|
|
|
+ return CardEffectCommons.CanPlayAsNewPermanent(cardSource: cardSource, payCost: false, cardEffect: activateClass) &&
|
|
|
|
|
+ cardSource.IsDigimon &&
|
|
|
|
|
+ (cardSource.ContainsTraits("Machine Drago") || cardSource.ContainsTraits("Sky Dragon"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool CanActivateCondition(Hashtable hashtable)
|
|
bool CanActivateCondition(Hashtable hashtable)
|
|
|
{
|
|
{
|
|
|
- return CardEffectCommons.IsExistOnBattleAreaDigimon(card) && CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectCardToPlayFromHand);
|
|
|
|
|
|
|
+ return CardEffectCommons.IsExistOnBattleAreaDigimon(card) &&
|
|
|
|
|
+ CardEffectCommons.HasMatchConditionOwnersHand(card, CanSelectCardToPlayFromHand);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
IEnumerator ActivateCoroutine(Hashtable hashtable)
|
|
IEnumerator ActivateCoroutine(Hashtable hashtable)
|
|
|
{
|
|
{
|
|
|
List<CardSource> selectedCards = new List<CardSource>();
|
|
List<CardSource> selectedCards = new List<CardSource>();
|
|
|
|
|
|
|
|
- SelectCardEffect selectCardEffect = GManager.instance.GetComponent<SelectCardEffect>();
|
|
|
|
|
|
|
+ SelectHandEffect selectCardEffect = GManager.instance.GetComponent<SelectHandEffect>();
|
|
|
|
|
|
|
|
selectCardEffect.SetUp(
|
|
selectCardEffect.SetUp(
|
|
|
|
|
+ selectPlayer: card.Owner,
|
|
|
canTargetCondition: CanSelectCardToPlayFromHand,
|
|
canTargetCondition: CanSelectCardToPlayFromHand,
|
|
|
canTargetCondition_ByPreSelecetedList: null,
|
|
canTargetCondition_ByPreSelecetedList: null,
|
|
|
canEndSelectCondition: null,
|
|
canEndSelectCondition: null,
|
|
|
- canNoSelect: () => true,
|
|
|
|
|
- selectCardCoroutine: SelectCardCoroutine,
|
|
|
|
|
- afterSelectCardCoroutine: null,
|
|
|
|
|
- message: "Select 1 card to play.",
|
|
|
|
|
maxCount: 1,
|
|
maxCount: 1,
|
|
|
|
|
+ canNoSelect: true,
|
|
|
canEndNotMax: false,
|
|
canEndNotMax: false,
|
|
|
isShowOpponent: true,
|
|
isShowOpponent: true,
|
|
|
- mode: SelectCardEffect.Mode.Custom,
|
|
|
|
|
- root: SelectCardEffect.Root.Hand,
|
|
|
|
|
- customRootCardList: null,
|
|
|
|
|
- canLookReverseCard: true,
|
|
|
|
|
- selectPlayer: card.Owner,
|
|
|
|
|
|
|
+ selectCardCoroutine: SelectCardCoroutine,
|
|
|
|
|
+ afterSelectCardCoroutine: null,
|
|
|
|
|
+ mode: SelectHandEffect.Mode.Custom,
|
|
|
cardEffect: activateClass);
|
|
cardEffect: activateClass);
|
|
|
|
|
+
|
|
|
|
|
|
|
|
selectCardEffect.SetUpCustomMessage("Select 1 card to play.", "The opponent is selecting 1 card to play.");
|
|
selectCardEffect.SetUpCustomMessage("Select 1 card to play.", "The opponent is selecting 1 card to play.");
|
|
|
selectCardEffect.SetUpCustomMessage_ShowCard("Played Card");
|
|
selectCardEffect.SetUpCustomMessage_ShowCard("Played Card");
|