|
@@ -0,0 +1,91 @@
|
|
|
|
|
+using System.Collections.Generic;
|
|
|
|
|
+
|
|
|
|
|
+// Hawkmon
|
|
|
|
|
+namespace DCGO.CardEffects.BT25
|
|
|
|
|
+{
|
|
|
|
|
+ public class BT25_010 : CEntity_Effect
|
|
|
|
|
+ {
|
|
|
|
|
+ public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
|
|
|
|
|
+ {
|
|
|
|
|
+ List<ICardEffect> cardEffects = new List<ICardEffect>();
|
|
|
|
|
+
|
|
|
|
|
+ #region Alternative Digivolve Condition
|
|
|
|
|
+ if (timing == EffectTiming.None)
|
|
|
|
|
+ {
|
|
|
|
|
+ static bool PermanentCondition(Permanent targetPermanent)
|
|
|
|
|
+ {
|
|
|
|
|
+ return targetPermanent.TopCard.HasTSTraits;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ cardEffects.Add(CardEffectFactory.AddSelfDigivolutionRequirementStaticEffect(PermanentCondition, 0, false, card, null, level: 2));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (timing == EffectTiming.None)
|
|
|
|
|
+ {
|
|
|
|
|
+ static bool PermanentCondition(Permanent targetPermanent)
|
|
|
|
|
+ {
|
|
|
|
|
+ return targetPermanent.TopCard.EqualsCardName("Poromon");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ cardEffects.Add(CardEffectFactory.AddSelfDigivolutionRequirementStaticEffect(PermanentCondition, 0, false, card, null));
|
|
|
|
|
+ }
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ #region Your Turn
|
|
|
|
|
+ if (timing == EffectTiming.None)
|
|
|
|
|
+ {
|
|
|
|
|
+ bool Condition()
|
|
|
|
|
+ {
|
|
|
|
|
+ return CardEffectCommons.IsOwnerTurn(card)
|
|
|
|
|
+ && CardEffectCommons.IsExistOnBattleAreaDigimon(card);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ bool PermanentCondition(Permanent targetPermanent)
|
|
|
|
|
+ {
|
|
|
|
|
+ return targetPermanent == card.PermanentOfThisCard();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ bool CardSourceCondition(CardSource cardSource)
|
|
|
|
|
+ {
|
|
|
|
|
+ return cardSource.HasBirdTraits
|
|
|
|
|
+ || cardSource.HasBeastTraits;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ bool RootCondition(SelectCardEffect.Root root)
|
|
|
|
|
+ {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ cardEffects.Add(CardEffectFactory.ChangeDigivolutionCostStaticEffect(
|
|
|
|
|
+ changeValue: -1,
|
|
|
|
|
+ permanentCondition: PermanentCondition,
|
|
|
|
|
+ cardCondition: CardSourceCondition,
|
|
|
|
|
+ rootCondition: RootCondition,
|
|
|
|
|
+ isInheritedEffect: false,
|
|
|
|
|
+ card: card,
|
|
|
|
|
+ condition: Condition,
|
|
|
|
|
+ setFixedCost: false));
|
|
|
|
|
+ }
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ #region Inherit
|
|
|
|
|
+ if (timing == EffectTiming.None)
|
|
|
|
|
+ {
|
|
|
|
|
+ bool Condition()
|
|
|
|
|
+ {
|
|
|
|
|
+ return CardEffectCommons.IsExistOnBattleAreaDigimon(card)
|
|
|
|
|
+ && CardEffectCommons.IsOwnerTurn(card);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(
|
|
|
|
|
+ changeValue: 2000,
|
|
|
|
|
+ isInheritedEffect: true,
|
|
|
|
|
+ card: card,
|
|
|
|
|
+ condition: Condition));
|
|
|
|
|
+ }
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ return cardEffects;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|