BT18_002.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections.Generic;
  2. namespace DCGO.CardEffects.BT18
  3. {
  4. public class BT18_002 : CEntity_Effect
  5. {
  6. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  7. {
  8. List<ICardEffect> cardEffects = new List<ICardEffect>();
  9. #region Inherit
  10. if (timing == EffectTiming.None)
  11. {
  12. bool Condition()
  13. {
  14. if (CardEffectCommons.IsExistOnBattleAreaDigimon(card))
  15. {
  16. if (CardEffectCommons.HasMatchConditionOwnersPermanent(card, (permanent) => permanent.IsDigimon && permanent.TopCard.CardColors.Contains(CardColor.Blue) && permanent != card.PermanentOfThisCard()))
  17. {
  18. return true;
  19. }
  20. }
  21. return false;
  22. }
  23. cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(changeValue: 1000, isInheritedEffect: true, card: card, condition: Condition));
  24. }
  25. #endregion
  26. return cardEffects;
  27. }
  28. }
  29. }