BT20_001.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. namespace DCGO.CardEffects.BT20
  4. {
  5. public class BT20_001 : 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 CanActivateCondition()
  13. {
  14. if (CardEffectCommons.IsOwnerTurn(card))
  15. {
  16. if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
  17. {
  18. if (card.Owner.LibraryCards.Count >= 1)
  19. {
  20. if (card.PermanentOfThisCard().DigivolutionCards.Count >= 4)
  21. {
  22. return true;
  23. }
  24. }
  25. }
  26. }
  27. return false;
  28. }
  29. cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(changeValue: 2000, isInheritedEffect: true, card: card, condition: CanActivateCondition));
  30. }
  31. return cardEffects;
  32. }
  33. }
  34. }