EX2_034.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System.Collections.Generic;
  2. namespace DCGO.CardEffects.EX2
  3. {
  4. public class EX2_034 : CEntity_Effect
  5. {
  6. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  7. {
  8. List<ICardEffect> cardEffects = new List<ICardEffect>();
  9. if (timing == EffectTiming.None)
  10. {
  11. cardEffects.Add(CardEffectFactory.BlockerSelfStaticEffect(isInheritedEffect: false, card: card, condition: null));
  12. }
  13. if (timing == EffectTiming.None)
  14. {
  15. bool Condition()
  16. {
  17. if (CardEffectCommons.IsExistOnBattleArea(card))
  18. {
  19. if (CardEffectCommons.IsOpponentTurn(card))
  20. {
  21. return true;
  22. }
  23. }
  24. return false;
  25. }
  26. bool PermanentCondition(Permanent permanent)
  27. {
  28. if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
  29. {
  30. if (permanent.HasBlocker)
  31. {
  32. return true;
  33. }
  34. }
  35. return false;
  36. }
  37. cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
  38. permanentCondition: PermanentCondition,
  39. changeValue: 2000,
  40. isInheritedEffect: false,
  41. card: card,
  42. condition: Condition,
  43. effectName: () => "Your Digimon with Blocker gain DP +2000"));
  44. }
  45. return cardEffects;
  46. }
  47. }
  48. }