BT16_003.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections.Generic;
  2. namespace DCGO.CardEffects.BT16
  3. {
  4. public class BT16_003 : 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.IsExistOnBattleArea(card))
  15. {
  16. if (CardEffectCommons.IsOpponentTurn(card))
  17. {
  18. if (card.PermanentOfThisCard().TopCard.CardColors.Count >= 2)
  19. {
  20. return true;
  21. }
  22. }
  23. }
  24. return false;
  25. }
  26. cardEffects.Add(CardEffectFactory.BlockerSelfStaticEffect(isInheritedEffect: true, card: card, condition: Condition));
  27. }
  28. #endregion
  29. return cardEffects;
  30. }
  31. }
  32. }