| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using System.Collections.Generic;
- namespace DCGO.CardEffects.EX4
- {
- public class EX4_042 : CEntity_Effect
- {
- public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
- {
- List<ICardEffect> cardEffects = new List<ICardEffect>();
- if (timing == EffectTiming.None)
- {
- bool Condition()
- {
- return CardEffectCommons.IsOwnerTurn(card);
- }
- cardEffects.Add(CardEffectFactory.CanNotBeBlockedStaticSelfEffect(
- defenderCondition: null,
- isInheritedEffect: false,
- card: card,
- condition: Condition,
- effectName: "Unblockable"));
- }
- if (timing == EffectTiming.None)
- {
- bool Condition()
- {
- if (CardEffectCommons.IsExistOnBattleArea(card))
- {
- if (CardEffectCommons.IsOwnerTurn(card))
- {
- return true;
- }
- }
- return false;
- }
- bool AttackerCondition(Permanent attacker)
- {
- if (CardEffectCommons.IsPermanentExistsOnOwnerBattleArea(attacker, card))
- {
- if (attacker.TopCard.ContainsCardName("Knightmon") || attacker.TopCard.ContainsCardName("Knightsmon"))
- {
- if (attacker.IsDigimon)
- {
- return true;
- }
- }
- }
- return false;
- }
- cardEffects.Add(CardEffectFactory.CanNotBlockStaticEffect(
- attackerCondition: AttackerCondition,
- defenderCondition: null,
- isInheritedEffect: false,
- card: card,
- condition: Condition,
- effectName: "Your Digimon with [Knightmon] or [Knightsmon] in their names are unblockable"));
- }
- return cardEffects;
- }
- }
- }
|