BT21_006.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. namespace DCGO.CardEffects.BT21
  5. {
  6. //Tsumemon
  7. public class BT21_006 : CEntity_Effect
  8. {
  9. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  10. {
  11. List<ICardEffect> cardEffects = new List<ICardEffect>();
  12. #region Inherit
  13. if (timing == EffectTiming.None)
  14. {
  15. bool VemmonCondition(CardSource source)
  16. {
  17. return source.EqualsCardName("Vemmon");
  18. }
  19. bool Condition()
  20. {
  21. if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
  22. return card.PermanentOfThisCard().DigivolutionCards.Count(VemmonCondition) >= 4;
  23. return false;
  24. }
  25. cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(changeValue: 3000, isInheritedEffect: true, card: card, condition: Condition));
  26. }
  27. #endregion
  28. return cardEffects;
  29. }
  30. }
  31. }