|
|
@@ -0,0 +1,103 @@
|
|
|
+using System.Collections;
|
|
|
+using System.Collections.Generic;
|
|
|
+
|
|
|
+// Giant Meat
|
|
|
+namespace DCGO.CardEffects.EX12
|
|
|
+{
|
|
|
+ public class EX12_073 : CEntity_Effect
|
|
|
+ {
|
|
|
+ public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
|
|
|
+ {
|
|
|
+ List<ICardEffect> cardEffects = new List<ICardEffect>();
|
|
|
+
|
|
|
+ #region Use Req
|
|
|
+ if (timing == EffectTiming.None)
|
|
|
+ {
|
|
|
+ cardEffects.Add(CardEffectFactory.UseRequirements(card, CardCondition));
|
|
|
+
|
|
|
+ bool CardCondition(CardSource cardSource)
|
|
|
+ {
|
|
|
+ return cardSource.EqualsTraits("NSp")
|
|
|
+ || cardSource.EqualsTraits("DS")
|
|
|
+ || cardSource.EqualsTraits("NSo")
|
|
|
+ || cardSource.EqualsTraits("WG")
|
|
|
+ || cardSource.EqualsTraits("ME")
|
|
|
+ || cardSource.EqualsTraits("VB");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region Main
|
|
|
+ if (timing == EffectTiming.OptionSkill)
|
|
|
+ {
|
|
|
+ ActivateClass activateClass = new ActivateClass();
|
|
|
+ activateClass.SetUpICardEffect("Reveal 3, add 1 traited card, bot deck the rest, place in battle area", CanUseCondition, card);
|
|
|
+ activateClass.SetUpActivateClass(null, ActivateCoroutine, -1, false, EffectDescription());
|
|
|
+ cardEffects.Add(activateClass);
|
|
|
+
|
|
|
+ string EffectDescription()
|
|
|
+ {
|
|
|
+ return "[Main] Reveal the top 3 cards of your deck. Add 1 [NSp] / [DS] / [NSo] / [WG] / [ME] / [VB] trait card among them to the hand. Return the rest to the bottom of the deck. Then, place this card in the battle area.";
|
|
|
+ }
|
|
|
+
|
|
|
+ bool CanSelectCardCondition(CardSource cardSource)
|
|
|
+ {
|
|
|
+ return cardSource.EqualsTraits("NSp")
|
|
|
+ || cardSource.EqualsTraits("DS")
|
|
|
+ || cardSource.EqualsTraits("NSo")
|
|
|
+ || cardSource.EqualsTraits("WG")
|
|
|
+ || cardSource.EqualsTraits("ME")
|
|
|
+ || cardSource.EqualsTraits("VB");
|
|
|
+ }
|
|
|
+
|
|
|
+ bool CanUseCondition(Hashtable hashtable)
|
|
|
+ {
|
|
|
+ return CardEffectCommons.CanTriggerOptionMainEffect(hashtable, card);
|
|
|
+ }
|
|
|
+
|
|
|
+ IEnumerator ActivateCoroutine(Hashtable _hashtable)
|
|
|
+ {
|
|
|
+ yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.RevealDeckTopCardsAndSelect(
|
|
|
+ revealCount: 3,
|
|
|
+ selectCardConditions:
|
|
|
+ new SelectCardConditionClass[]
|
|
|
+ {
|
|
|
+ new SelectCardConditionClass(
|
|
|
+ canTargetCondition:CanSelectCardCondition,
|
|
|
+ canTargetCondition_ByPreSelecetedList:null,
|
|
|
+ canEndSelectCondition:null,
|
|
|
+ canNoSelect:false,
|
|
|
+ selectCardCoroutine: null,
|
|
|
+ message: "Select 1 [NSp] / [DS] / [NSo] / [WG] / [ME] / [VB] trait card.",
|
|
|
+ maxCount: 1,
|
|
|
+ canEndNotMax:false,
|
|
|
+ mode: SelectCardEffect.Mode.AddHand
|
|
|
+ )
|
|
|
+ },
|
|
|
+ remainingCardsPlace: RemainingCardsPlace.DeckBottom,
|
|
|
+ activateClass: activateClass,
|
|
|
+ canNoAction: false));
|
|
|
+
|
|
|
+ yield return ContinuousController.instance.StartCoroutine(CardEffectCommons.PlaceDelayOptionCards(card: card, cardEffect: activateClass));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region Main Delay
|
|
|
+ if (timing == EffectTiming.OnDeclaration)
|
|
|
+ {
|
|
|
+ cardEffects.Add(CardEffectFactory.Gain2MemoryOptionDelayEffect(card));
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region Security
|
|
|
+ if (timing == EffectTiming.SecuritySkill)
|
|
|
+ {
|
|
|
+ cardEffects.Add(CardEffectFactory.PlaceSelfDelayOptionSecurityEffect(card));
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ return cardEffects;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|