BT10_001.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System.Linq;
  5. using Photon;
  6. using System;
  7. using Photon.Pun;
  8. namespace DCGO.CardEffects.BT10
  9. {
  10. public class BT10_001 : CEntity_Effect
  11. {
  12. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  13. {
  14. List<ICardEffect> cardEffects = new List<ICardEffect>();
  15. if (timing == EffectTiming.None)
  16. {
  17. bool Condition()
  18. {
  19. if (CardEffectCommons.IsExistOnBattleArea(card))
  20. {
  21. if (CardEffectCommons.IsOwnerTurn(card))
  22. {
  23. if (card.PermanentOfThisCard().DigivolutionCards.Count((cardSource) => cardSource.CardColors.Count((cardColor) => cardColor != CardColor.Red) >= 1) >= 1)
  24. {
  25. return true;
  26. }
  27. }
  28. }
  29. return false;
  30. }
  31. cardEffects.Add(CardEffectFactory.ChangeSelfDPStaticEffect(changeValue: 1000, isInheritedEffect: true, card: card, condition: Condition));
  32. }
  33. return cardEffects;
  34. }
  35. }
  36. }