BT4_066.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. public class BT4_066 : CEntity_Effect
  9. {
  10. public override List<ICardEffect> CardEffects(EffectTiming timing, CardSource card)
  11. {
  12. List<ICardEffect> cardEffects = new List<ICardEffect>();
  13. if (timing == EffectTiming.None)
  14. {
  15. bool Condition()
  16. {
  17. if (CardEffectCommons.IsExistOnBattleArea(card))
  18. {
  19. return true;
  20. }
  21. return false;
  22. }
  23. bool PermanentCondition(Permanent permanent)
  24. {
  25. if (CardEffectCommons.IsPermanentExistsOnOwnerBattleAreaDigimon(permanent, card))
  26. {
  27. if (permanent.TopCard.CardColors.Contains(CardColor.Black))
  28. {
  29. return true;
  30. }
  31. }
  32. return false;
  33. }
  34. cardEffects.Add(CardEffectFactory.ChangeDPStaticEffect(
  35. permanentCondition: PermanentCondition,
  36. changeValue: 1000,
  37. isInheritedEffect: false,
  38. card: card,
  39. condition: Condition,
  40. effectName: () => "Your black Digimon gain DP +1000"));
  41. }
  42. return cardEffects;
  43. }
  44. }