BT14_002.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. namespace DCGO.CardEffects.BT14
  4. {
  5. public class BT14_002 : CEntity_Effect
  6. {
  7. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  8. {
  9. List<ICardEffect> cardEffects = new List<ICardEffect>();
  10. if (timing == EffectTiming.None)
  11. {
  12. bool Condition()
  13. {
  14. if (CardEffectCommons.IsExistOnBattleArea(card))
  15. {
  16. if (CardEffectCommons.IsOwnerTurn(card))
  17. {
  18. if (card.Owner.Enemy.GetBattleAreaDigimons().Count(permanent => permanent.DigivolutionCards.Count >= card.PermanentOfThisCard().DigivolutionCards.Count) == 0)
  19. {
  20. return true;
  21. }
  22. }
  23. }
  24. return false;
  25. }
  26. cardEffects.Add(CardEffectFactory.JammingSelfStaticEffect(isInheritedEffect: true, card: card, condition: Condition));
  27. }
  28. return cardEffects;
  29. }
  30. }
  31. }