EX7_001.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. namespace DCGO.CardEffects.EX7
  4. {
  5. public class EX7_001 : CEntity_Effect
  6. {
  7. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  8. {
  9. List<ICardEffect> cardEffects = new List<ICardEffect>();
  10. #region Inherit
  11. if (timing == EffectTiming.None)
  12. {
  13. bool Condition()
  14. {
  15. if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
  16. {
  17. if (CardEffectCommons.IsOwnerTurn(card))
  18. {
  19. if (card.Owner.Enemy.GetBattleAreaDigimons().Count <= 1)
  20. {
  21. return true;
  22. }
  23. }
  24. }
  25. return false;
  26. }
  27. cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(changeValue: 2000, isInheritedEffect: true, card: card, condition: Condition));
  28. }
  29. #endregion
  30. return cardEffects;
  31. }
  32. }
  33. }